/* timeline.css — Horizontale Aktivitäts-Timeline */

.timeline-wrap {
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  overflow-x: auto;
  scrollbar-width: thin;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.timeline-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-1);
}

.timeline-nav {
  display: flex;
  gap: var(--space-2);
}

.timeline-nav-btn {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  color: var(--text-1);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-sm);
  transition: background var(--transition-fast);
}

.timeline-nav-btn:hover { background: var(--bg-3); color: var(--text-0); }

/* Canvas-Wrapper */
.timeline-canvas-wrap {
  position: relative;
  min-height: 80px;
}

.timeline-canvas {
  display: block;
  width: 100%;
  cursor: pointer;
}

/* Legende */
.timeline-legend {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.timeline-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-1);
}

.timeline-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.timeline-legend-dot--free     { background: var(--timeline-free); }
.timeline-legend-dot--vacation { background: var(--timeline-vacation); }
.timeline-legend-dot--blocked  { background: var(--timeline-blocked); }
.timeline-legend-dot--partial  { background: var(--timeline-partial); }

/* Tooltip (bei Hover über Canvas) */
.timeline-tooltip {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-0);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  z-index: 10;
  transform: translateX(-50%);
}

.timeline-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--border-1);
}
