/* Zeitplan — Gantt, Fortschritt, Checkliste, Kalender
   Teil von style.css (W2, Schnitt E — AK 60: keine Datei ueber 200 Zeilen).
   Einbindungsreihenfolge zaehlt: siehe index.html. */

/* ============ GANTT ============ */
.gantt-chart { overflow-x: auto; padding: 12px 0; }

.gantt-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.gantt-label {
    width: 160px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    color: var(--text-muted);
}

.gantt-track {
    flex: 1;
    height: 28px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.gantt-bar {
    position: absolute;
    top: 2px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.gantt-bar.planning { background: var(--info); }
.gantt-bar.montage { background: var(--warning); }
.gantt-bar.abnahme { background: var(--purple); }
.gantt-bar.done { background: var(--success); }

/* ============ PROGRESS ============ */
.progress-bar {
    height: 6px;
    background: var(--bg-surface);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
    background: var(--accent);
}

.progress-fill.green { background: var(--success); }
.progress-fill.yellow { background: var(--warning); }
.progress-fill.red { background: var(--danger); }

/* ============ CHECKLIST ============ */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(51,65,85,0.3);
    cursor: pointer;
    transition: background var(--transition);
}

.checklist-item:hover { background: rgba(51,65,85,0.2); }

.checklist-item.checked { background: rgba(34,197,94,0.06); }
.checklist-item.checked .check-label { text-decoration: line-through; color: var(--text-dim); }

.check-box {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    transition: all var(--transition);
}

.checklist-item.checked .check-box {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.check-label { flex: 1; font-size: 13px; }

/* ============ CALENDAR ============ */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-header {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: background var(--transition);
    position: relative;
    color: var(--text-secondary);
}

.calendar-day:hover { background: var(--bg-surface); }
.calendar-day.today { background: var(--accent); color: #0f172a; font-weight: 700; }
.calendar-day.has-event::after {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--info);
    border-radius: 50%;
    position: absolute;
    bottom: 3px;
}

.calendar-day.other-month { color: var(--text-dim); opacity: 0.4; }

