/* Platzbelegung – Timeline / Gantt-Ansicht */
.fcn-tt {
  --fcn-tt-team-w: 9.5rem;
  --fcn-tt-cab-w: 6.5rem;
  --fcn-tt-row-h: 2.75rem;
  --fcn-tt-axis-h: 1.75rem;
}

.fcn-tt__day {
  margin-bottom: 1.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.fcn-tt__day-head {
  background: #3b82f6;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.75rem 1.1rem;
}
.fcn-tt__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.fcn-tt__grid {
  min-width: 720px;
  display: grid;
  grid-template-columns: var(--fcn-tt-team-w) minmax(28rem, 1fr) var(--fcn-tt-cab-w);
}
.fcn-tt__corner,
.fcn-tt__cab-head {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
  display: flex;
  align-items: center;
  padding: 0 0.65rem;
  height: var(--fcn-tt-axis-h);
}
.fcn-tt__cab-head {
  border-right: 0;
  justify-content: center;
}
.fcn-tt__axis {
  position: relative;
  height: var(--fcn-tt-axis-h);
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.fcn-tt__tick {
  position: absolute;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  white-space: nowrap;
  pointer-events: none;
}
.fcn-tt__tick::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 60%;
  bottom: 0;
  width: 1px;
  background: #e5e7eb;
}

.fcn-tt__team {
  display: flex;
  align-items: center;
  padding: 0 0.65rem;
  height: var(--fcn-tt-row-h);
  background: #fef9c3;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  font-size: 0.8rem;
  font-weight: 700;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fcn-tt__track {
  position: relative;
  height: var(--fcn-tt-row-h);
  border-bottom: 1px solid #e5e7eb;
  background-image: repeating-linear-gradient(
    to right,
    transparent,
    transparent calc(100% / var(--fcn-tt-slots) - 1px),
    #f3f4f6 calc(100% / var(--fcn-tt-slots) - 1px),
    #f3f4f6 calc(100% / var(--fcn-tt-slots))
  );
}
.fcn-tt__cab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--fcn-tt-row-h);
  border-bottom: 1px solid #e5e7eb;
  background: #ffedd5;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9a3412;
  padding: 0 0.35rem;
  text-align: center;
}
.fcn-tt__cab--empty {
  background: #fff;
  color: #d1d5db;
  font-weight: 400;
}

.fcn-tt__bar {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  border-radius: 0.35rem;
  padding: 0 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 1.1;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  z-index: 1;
}
.fcn-tt__bar-venue {
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.fcn-tt__bar-time {
  font-size: 0.58rem;
  font-weight: 600;
  opacity: 0.88;
  white-space: nowrap;
}
/* Visueller Hinweis: Hälfte 1 links, Hälfte 2 rechts markiert */
.fcn-tt__bar--h1 {
  box-shadow: inset 3px 0 0 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.fcn-tt__bar--h2 {
  box-shadow: inset -3px 0 0 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.fcn-tt__bar--light-green {
  background: #bbf7d0;
  color: #14532d;
}
.fcn-tt__bar--yellow {
  background: #fde047;
  color: #713f12;
}
.fcn-tt__bar--dark-green {
  background: #15803d;
  color: #fff;
}
.fcn-tt__bar--default {
  background: #bfdbfe;
  color: #1e3a8a;
}

.fcn-tt__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: #4b5563;
}
.fcn-tt__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.fcn-tt__legend-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .fcn-tt {
    --fcn-tt-team-w: 11rem;
    --fcn-tt-cab-w: 7rem;
    --fcn-tt-row-h: 3rem;
  }
  .fcn-tt__bar-venue { font-size: 0.75rem; }
  .fcn-tt__bar-time { font-size: 0.65rem; }
}
