/* ---------- Stundenplan ---------- */

.schedule-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.schedule-toolbar select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 12px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

/* ---- Wochenraster ---- */

.schedule-week-grid {
    display: grid;
    grid-template-columns: 52px repeat(7, 1fr);
    border: 1px solid var(--border);
    overflow-x: auto;
}

.schedule-week-head {
    display: contents;
}

.schedule-week-head > div {
    padding: 8px 6px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
    text-align: center;
    position: sticky;
    top: 0;
    background: var(--bg);
}

.schedule-week-head > div:first-child { border-left: none; }

.schedule-hour-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    padding: 2px 6px;
    text-align: right;
    border-top: 1px solid var(--border);
}

.schedule-day-col {
    position: relative;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    min-height: 720px; /* 12 Stunden * 60px */
}

.schedule-entry-block {
    position: absolute;
    left: 3px;
    right: 3px;
    border-radius: 2px;
    padding: 4px 6px;
    font-size: 0.68rem;
    line-height: 1.3;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.schedule-entry-block:hover {
    filter: brightness(1.15);
}

.schedule-entry-title {
    font-weight: 700;
    display: block;
}

.schedule-entry-time {
    display: block;
    opacity: 0.85;
}

/* ---- Tagesansicht ---- */

.schedule-day-list {
    border: 1px solid var(--border);
}

.schedule-day-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.schedule-day-row:last-child { border-bottom: none; }
.schedule-day-row:hover { background: var(--surface-raised); }

.schedule-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Monatsraster ---- */

.schedule-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid var(--border);
}

.schedule-month-cell {
    min-height: 90px;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    padding: 6px;
    font-size: 0.68rem;
}

.schedule-month-cell:nth-child(7n+1) { border-left: none; }

.schedule-month-daynum {
    color: var(--text-dim);
    margin-bottom: 4px;
}

.schedule-month-daynum.today {
    color: var(--accent-yellow);
    font-weight: 700;
}

.schedule-month-pill {
    display: block;
    padding: 1px 4px;
    margin-bottom: 2px;
    border-radius: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
}

/* ---- Farbwahl im Formular ---- */

.schedule-color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.schedule-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.schedule-color-swatch.selected {
    border-color: var(--text);
}

.schedule-inherited-color-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ---------- Dashboard: horizontale Tages-/Todo-Leisten ---------- */

.dashboard-strip {
    margin-bottom: 20px;
}

.dashboard-strip-title {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.dashboard-strip-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.dashboard-strip-card {
    flex: 0 0 auto;
    min-width: 150px;
    max-width: 220px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-blue);
    padding: 10px 12px;
    cursor: pointer;
    background: var(--surface);
}

.dashboard-strip-card:hover {
    background: var(--surface-raised);
}

.dashboard-strip-card .strip-card-title {
    font-weight: 700;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-strip-card .strip-card-meta {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.dashboard-strip-empty {
    font-size: 0.78rem;
    color: var(--text-dim);
    padding: 10px 0;
}