/* ============================================================
   Schedule
   ============================================================ */

.schedule {
    --sch-line: var(--line);
    --sch-muted: var(--ink-3);
}

/* ===== View switcher: Tag / Woche / Monat ===== */
.schedule-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.schedule-nav a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  transition: all .15s;
}
.schedule-nav a:hover {
    border-color: var(--ink);
    color: var(--ink);
}
.schedule-nav a.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
}

/* ===== Header (date + prev/next) ===== */
.schedule-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.schedule-header h2 {
    margin: 0;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .05em;
    line-height: 1.2;
    text-align: center;
    color: var(--ink-2);
}
.schedule-header .nav-prev,
.schedule-header .nav-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  transition: all .15s;
}
.schedule-header .nav-prev:hover,
.schedule-header .nav-next:hover {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}

.schedule-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--ink-3);
    font-family: var(--font-mono);
    font-size: 13px;
}

/* ============================================================
   Day view
   ============================================================ */
.schedule--day .show-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.schedule--day .show {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.schedule--day .show:last-child {
    border-bottom: 0;
}
.schedule--day .time {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--ink-3);
    letter-spacing: .02em;
    white-space: nowrap;
}
.schedule--day .title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    line-height: 1.3;
    color: var(--ink);
}
.schedule--day .title:hover {
    color: var(--accent);
}

@media (max-width: 540px) {
    .schedule--day .show {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 0;
    }
    .schedule--day .time {
        font-size: 12px;
    }
}

/* ============================================================
   Week view
   ============================================================ */
.schedule--week .week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.schedule--week .day {
    background: var(--cream);
    padding: 14px 12px;
    min-height: 220px;
}
.schedule--week .day.is-today {
    background: var(--cream-2);
}
.schedule--week .day-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.schedule--week .day.is-today .day-title {
    color: var(--accent);
}
.schedule--week .day-date {
    font-weight: 400;
    color: var(--ink-3);
    letter-spacing: 0;
}
.schedule--week .show {
    padding: 6px 0;
    line-height: 1.3;
}
.schedule--week .show + .show {
    border-top: 1px dashed var(--line);
}
.schedule--week .show .time {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    margin-bottom: 2px;
}
.schedule--week .show .title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.schedule--week .show .title:hover {
    color: var(--accent);
}

/* Mobile: stack week as a list of days */
@media (max-width: 768px) {
    .schedule--week .week-grid {
        grid-template-columns: 1fr;
        background: transparent;
        border: 0;
        border-radius: 0;
        gap: 0;
    }
    .schedule--week .day {
        min-height: 0;
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
    }
    .schedule--week .day:last-child {
        border-bottom: 0;
    }
    .schedule--week .day.is-today {
        background: transparent;
    }
    .schedule--week .day-title {
        font-size: 13px;
    }
    .schedule--week .day.is-today .day-title {
        color: var(--accent);
    }
    .schedule--week .show {
        display: grid;
        grid-template-columns: 64px 1fr;
        gap: 12px;
        padding: 6px 0;
    }
    .schedule--week .show + .show {
        border-top: 0;
    }
    .schedule--week .show .time {
        margin-bottom: 0;
    }
    .schedule--week .show .title {
        font-size: 14px;
        -webkit-line-clamp: unset;
    }
}

/* ============================================================
   Month view (navigator with show-indicator dots)
   ============================================================ */
.schedule--month .month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.schedule--month .month-head {
    padding: 10px 4px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ink-3);
    background: transparent;
}
.schedule--month .month-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: var(--ink);
    transition: all .15s;
    cursor: pointer;
}
.schedule--month .month-cell:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
}
.schedule--month .month-cell.is-outside {
    opacity: .35;
    pointer-events: none;
}
.schedule--month .month-cell.is-today {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
}
.schedule--month .cell-date {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
}
.schedule--month .cell-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}
.schedule--month .month-cell.is-today .cell-dot {
    background: var(--cream);
}
.schedule--month .month-cell.no-shows {
    opacity: .55;
}
.schedule--month .month-cell.no-shows .cell-dot {
    visibility: hidden;
}
.schedule--month .cell-count {
    position: absolute;
    top: 6px;
    right: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-3);
}
.schedule--month .month-cell.is-today .cell-count {
    color: var(--cream);
    opacity: .7;
}

@media (max-width: 540px) {
    .schedule--month .month-grid {
        gap: 3px;
    }
    .schedule--month .month-cell {
        padding: 4px;
        gap: 3px;
        border-radius: 6px;
    }
    .schedule--month .cell-date {
        font-size: 14px;
    }
    .schedule--month .cell-count {
        display: none;
    }
    .schedule--month .month-head {
        font-size: 9px;
        padding: 6px 2px;
    }
}
/* Keep keyboard focus visible after we removed the underline */
.schedule-nav a:focus-visible,
.schedule-header .nav-prev:focus-visible,
.schedule-header .nav-next:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}