.eishockey-page {
    --calendar-hour-height: 72px;
    color: #162133;
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem clamp(1rem, 3vw, 3rem) 3rem;
}

.calendar-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.next-chneble {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 42rem;
    margin: 0 0 1.5rem;
    border: 1px solid #cfe0fa;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #eef6ff, #f9fbff);
    box-shadow: 0 0.75rem 2rem rgba(44, 93, 157, 0.1);
}

.next-chneble-mark {
    display: grid;
    flex: 0 0 2.75rem;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #2c67ad;
    color: #fff;
    font-size: 1.25rem;
}

.next-chneble-kicker {
    margin: 0 0 0.15rem;
    color: #5276a8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.next-chneble h2 {
    margin: 0;
    color: #1b3860;
    font-size: 1.1rem;
}

.next-chneble-date {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin: 0.35rem 0 0;
    color: #536b89;
    font-size: 0.9rem;
}

.next-chneble-date time {
    color: #1e568f;
    font-weight: 700;
}

.calendar-kicker {
    margin: 0 0 0.25rem;
    color: #4977b8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.calendar-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.045em;
}

.calendar-range {
    margin: 0.25rem 0 0;
    color: #687386;
    font-size: 0.95rem;
}

.calendar-sources {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    color: #7b879a;
    font-size: 0.72rem;
    font-weight: 600;
}

.schedule-status {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0.5rem 0 0;
    color: #536075;
    font-size: 0.78rem;
}

.schedule-status::before {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #e6b94d;
    content: '';
}

.schedule-status.lucerne::before {
    background: #6d9ddd;
}

.schedule-status-help {
    color: #8490a2;
    cursor: help;
    font-size: 0.9rem;
}

.calendar-source {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    border: 1px solid #d9e4f5;
    border-radius: 999px;
    background: #f4f8ff;
    color: #416ca9;
    padding: 0.1rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.calendar-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    border: 1px solid #dce2ec;
    border-radius: 0.5rem;
    color: #345276;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.calendar-navigation a:hover,
.calendar-navigation a:focus-visible {
    border-color: #709ce6;
    background: #f1f6ff;
}

.calendar-navigation a.current {
    border-color: #709ce6;
    background: #eaf2ff;
    color: #174d97;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #536075;
    font-size: 0.8rem;
    font-weight: 600;
}

.legend-item::before {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #709ce6;
    content: '';
}

.legend-item.game::before {
    background: #ef7882;
}

.legend-item.public::before {
    background: #e6b94d;
}

.calendar-scroll {
    overflow-x: auto;
    border: 1px solid #dce2ec;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1rem 3rem rgba(24, 39, 75, 0.08);
}

.week-calendar {
    min-width: 980px;
}

.calendar-days,
.calendar-body {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
}

.calendar-days {
    grid-template-columns: 4.5rem repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid #dce2ec;
    background: #f9fafc;
}

.calendar-corner,
.calendar-day-heading {
    min-height: 4.5rem;
}

.calendar-day-heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 1rem;
    border-left: 1px solid #e4e8ef;
}

.calendar-day-heading span {
    color: #7b879a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calendar-day-heading time {
    color: #202b3c;
    font-size: 0.95rem;
    font-weight: 700;
}

.calendar-day-heading.today {
    background: #eaf2ff;
}

.calendar-day-heading.today span,
.calendar-day-heading.today time {
    color: #174d97;
}

.calendar-times {
    display: grid;
    grid-template-rows: repeat(18, var(--calendar-hour-height));
    color: #8490a2;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.calendar-times span {
    padding: 0.45rem 0.7rem 0 0;
}

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

.calendar-day {
    position: relative;
    height: calc(18 * var(--calendar-hour-height));
    border-left: 1px solid #e4e8ef;
    background-image: linear-gradient(to bottom, #dce2ec 1px, transparent 1px);
    background-size: 100% var(--calendar-hour-height);
}

.calendar-day.today {
    background-color: #fbfdff;
}

.calendar-day.today::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: #709ce6;
    content: '';
}

.calendar-event {
    position: absolute;
    right: 0.35rem;
    left: 0.35rem;
    overflow: hidden;
    border: 0;
    border-radius: 0.6rem;
    padding: 0.55rem 0.6rem;
    box-shadow: inset 0 0 0 1px rgba(20, 38, 64, 0.08);
}

.calendar-event h2,
.calendar-event p {
    margin: 0;
}

.calendar-event h2 {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.calendar-event p {
    margin-top: 0.25rem;
    font-size: 0.7rem;
    line-height: 1.25;
}

.calendar-event.training {
    background: #dceaff;
    color: #174d97;
}

.calendar-event.game {
    background: #ffe0e2;
    color: #9e2835;
}

.calendar-event.engelberg-public,
.calendar-event.school {
    background: #fff2bd;
    color: #805b00;
}

.calendar-event.engelberg-public-hockey {
    background: #ffd95f;
    color: #634700;
}

.calendar-event.engelberg-public-hockey h2 {
    font-weight: 800;
}

.calendar-event.lucerne-public,
.calendar-event.lucerne-public-hockey {
    background: #dceaff;
    color: #174d97;
}

.calendar-event.lucerne-public-hockey h2 {
    font-weight: 800;
}

.calendar-event.setup {
    background: #dbe6f8;
    color: #345276;
}

.calendar-event.event {
    background: #dff3ed;
    color: #176352;
}

.calendar-event.maintenance {
    background: #edf0f4;
    color: #59677a;
}

@media (max-width: 700px) {
    .eishockey-page {
        padding-top: 1.25rem;
    }

    .calendar-heading {
        align-items: start;
        flex-direction: column;
        gap: 1rem;
    }
}
