.moove-kursplan,
.moove-kursplan * { box-sizing: border-box; }

.moove-kursplan {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
    color: #111827;
}

.moove-kursplan-accent {
    width: 38px;
    height: 3px;
    margin: 0 0 28px 26px;
    background: var(--moove-accent, #f5a623);
}

.moove-desktop-plan {
    width: 100%;
    overflow: hidden;
    background: #fff;
}

.moove-grid-header {
    display: grid;
    grid-template-columns: 105px repeat(7, minmax(0, 1fr));
    align-items: stretch;
    border-bottom: 1px solid var(--moove-line, #e1e4e8);
}

.moove-grid-corner,
.moove-day-head {
    min-height: 56px;
}

.moove-day-head {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 12px 8px;
    text-align: center;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: .025em;
}

.moove-day-head strong { font-weight: 700; }
.moove-day-head span { font-size: 10px; opacity: .58; text-transform: none; }

.moove-grid-body {
    position: relative;
    display: grid;
    grid-template-columns: 105px repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid var(--moove-line, #e1e4e8);
}

.moove-time-column,
.moove-day-column {
    position: relative;
    min-width: 0;
    background-image: linear-gradient(to bottom, var(--moove-line, #e1e4e8) 1px, transparent 1px);
    background-repeat: repeat-y;
}

.moove-time-column {
    border-right: 1px solid var(--moove-line, #e1e4e8);
}

.moove-day-column {
    border-right: 1px solid rgba(225,228,232,.45);
}
.moove-day-column:last-child { border-right: 0; }

.moove-time-label {
    position: absolute;
    left: 0;
    width: 100%;
    transform: translateY(8px);
    padding: 0 14px 0 4px;
    text-align: right;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: #232b34;
}

.moove-event {
    position: absolute;
    left: 6px;
    right: 6px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    overflow: hidden;
    padding: 8px 10px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 1px 3px rgba(15,23,42,.08);
    transition: transform .16s ease, box-shadow .16s ease;
}

.moove-event:hover {
    z-index: 5;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(0,0,0,.14);
}

.moove-event strong {
    display: block;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.18;
    font-weight: 800;
}

.moove-event-time,
.moove-event-trainer,
.moove-event-note {
    display: block;
    max-width: 100%;
    font-size: 11px;
    line-height: 1.18;
}

.moove-event-trainer { font-weight: 750; }
.moove-event.has-light-text strong,
.moove-event.has-light-text .moove-event-time,
.moove-event.has-light-text .moove-event-trainer,
.moove-event.has-light-text .moove-event-note { text-shadow: 0 1px 1px rgba(0,0,0,.12); }
.moove-event.has-dark-text strong,
.moove-event.has-dark-text .moove-event-trainer { color: #0f2347; }
.moove-event-note { opacity: .82; }
.moove-event.is-short .moove-event-trainer,
.moove-event.is-short .moove-event-note { display: none; }
.moove-event.is-short { padding-top: 4px; padding-bottom: 4px; gap: 1px; }
.moove-event.is-short strong { font-size: 11px; }
.moove-event.is-short .moove-event-time { font-size: 10px; }

.moove-mobile-plan { display: none; }

@media (max-width: 1180px) and (min-width: 901px) {
    .moove-desktop-plan { overflow-x: auto; padding-bottom: 8px; }
    .moove-grid-header,
    .moove-grid-body { min-width: 1080px; }
}

@media (max-width: 900px) {
    .moove-kursplan-accent { margin-left: 0; margin-bottom: 20px; }
    .moove-desktop-plan { display: none; }
    .moove-mobile-plan { display: block; }

    .moove-mobile-day {
        margin: 0 0 18px;
        border: 1px solid var(--moove-line, #e1e4e8);
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 7px 22px rgba(15,23,42,.04);
    }

    .moove-mobile-day > header {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
        padding: 14px 16px;
        border-bottom: 1px solid var(--moove-line, #e1e4e8);
        background: #f8f9fa;
    }

    .moove-mobile-day > header strong {
        font-size: 15px;
        text-transform: uppercase;
        letter-spacing: .025em;
    }

    .moove-mobile-day > header span {
        font-size: 12px;
        color: #68707a;
    }

    .moove-mobile-events { padding: 4px 14px; }

    .moove-mobile-event {
        display: grid;
        grid-template-columns: 72px 1fr;
        gap: 14px;
        align-items: center;
        padding: 14px 8px 14px 12px;
        border-bottom: 1px solid var(--moove-line, #e1e4e8);
        border-left: 5px solid var(--moove-primary, #2b78bd);
    }

    .moove-mobile-event:last-child { border-bottom: 0; }

    .moove-mobile-time {
        font-size: 17px;
        line-height: 1;
        font-weight: 800;
        color: #171d24;
    }

    .moove-mobile-time span {
        display: block;
        margin-top: 5px;
        font-size: 11px;
        font-weight: 600;
        color: #7a838d;
    }

    .moove-mobile-content { min-width: 0; }
    .moove-mobile-content strong { display: block; font-size: 16px; line-height: 1.2; }
    .moove-mobile-content span { display: block; margin-top: 4px; font-size: 13px; color: #5e6873; }
    .moove-mobile-content small { display: block; margin-top: 5px; font-size: 12px; color: #7a838d; }
}

@media (max-width: 480px) {
    .moove-mobile-events { padding-left: 10px; padding-right: 10px; }
    .moove-mobile-event { grid-template-columns: 62px 1fr; gap: 10px; padding-left: 9px; }
    .moove-mobile-time { font-size: 15px; }
    .moove-mobile-content strong { font-size: 15px; }
}
