/* ===========================================================================
   analytics-forecast — Modul „Prognose & Planung"
   Nur .fc-* Klassen; geteilte .ah-* werden wiederverwendet.
   Light + Dark über bestehende CSS-Variablen.
   =========================================================================== */

.fc-scope {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 12px;
}

/* Erläuternder Hinweis am Fuß des Moduls. */
.fc-note {
  margin-top: 14px;
  font-size: 11.5px;
  font-style: italic;
  color: var(--text-faint);
}

/* ---- Legende ----------------------------------------------------------- */
.fc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-2);
}
.fc-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.fc-swatch { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.fc-swatch-ist { background: #3B82F6; }
.fc-swatch-proj {
  background: rgba(59, 130, 246, .45);
  background-image: repeating-linear-gradient(
    45deg, rgba(255, 255, 255, .35) 0 3px, transparent 3px 6px);
}
.fc-swatch-target {
  background: transparent;
  border-left: 3px solid var(--text-2);
  border-radius: 0;
  width: 6px;
}

/* ---- Dualer Balken (Ist vs. Prognose + Ziel-Marker) -------------------- */
.fc-bars {
  position: relative;
  width: 150px;
  height: 18px;
  background: var(--gray-100, rgba(148, 163, 184, .12));
  border-radius: 3px;
  overflow: hidden;
}
.fc-bar {
  position: absolute;
  left: 0;
  height: 8px;
  border-radius: 2px;
  transition: width var(--dur-3, .25s) var(--ease-out, ease);
}
.fc-bar-ist {
  top: 1px;
  background: #3B82F6;
}
.fc-bar-proj {
  bottom: 1px;
  background: rgba(59, 130, 246, .45);
  background-image: repeating-linear-gradient(
    45deg, rgba(255, 255, 255, .35) 0 3px, transparent 3px 6px);
}
/* Prognose über Jahresziel → Warnfarbe. */
.fc-bar-proj.fc-bar-over {
  background: rgba(239, 68, 68, .5);
  background-image: repeating-linear-gradient(
    45deg, rgba(255, 255, 255, .35) 0 3px, transparent 3px 6px);
}
/* Ziel-Marker (vertikale Linie). */
.fc-target {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--text-1);
  opacity: .8;
  box-shadow: 0 0 4px rgba(0,0,0,.2);
}
.fc-target::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-1);
}

/* ---- Saisonale Ausfallquote (historisches Krankheitsmuster) ------------ */
.fc-seasonal-warning {
  margin: 4px 0 14px;
  padding: 10px 14px;
  border-radius: var(--radius, 10px);
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .35);
  color: var(--text-1);
  font-size: 12px;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

.fc-seasonal-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  padding: 0 2px;
  margin-bottom: 6px;
}

.fc-seasonal-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
}

.fc-seasonal-bar {
  width: 100%;
  max-width: 22px;
  border-radius: 3px 3px 0 0;
  background: rgba(59, 130, 246, .45);
  transition: height var(--dur-3, .25s) var(--ease-out, ease);
}

.fc-seasonal-bar-high {
  background: rgba(245, 158, 11, .75);
}

.fc-seasonal-bar-nodata {
  background: repeating-linear-gradient(
    45deg, var(--gray-200, rgba(148,163,184,.25)) 0 4px, transparent 4px 8px);
}

.fc-seasonal-lbl {
  font-size: 9.5px;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ---- Chart-Container ---------------------------------------------------- */
.fc-chart-wrap {
  position: relative;
  width: 100%;
  height: 320px;
}

/* --- Portrait-Mobile: Chart-Höhe halten, Dual-Balken schmaler --- */
@media (max-width: 560px) {
  .fc-chart-wrap { height: 240px; }
  .fc-bars { width: 100px; }
  .fc-legend { gap: 10px; }
}
@media (max-width: 380px) {
  .fc-chart-wrap { height: 210px; }
  .fc-bars { width: 80px; }
}
