
#year-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}
#year-control button {
  padding: 5px 10px;
  font-size: 16px;
}
#currentYear {
  font-size: 18px;
  font-weight: bold;
}
#gantt-container {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 20px;
}
.timeline {
  width: 100%;
  position: relative;
  min-height: 150px;
}
.task-row {
  position: relative;
  height: 40px;
  border-bottom: 1px solid #eee;
}
.task-bar {
  position: absolute;
  height: 30px;
  top: 5px;
  color: black;
  text-align: center;
  border-radius: 3px;
  padding: 5px;
  background-color: #f8f8f8;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.task-bar.geplant {
  border-color: #73737a;
}
.task-bar.laufend {
  border-color: #57a150;
}
.task-bar.abgeschlossen {
  border-color: #afc1b6;
}
.task-bar:hover {
  background-color: #ccd5c9;
  box-shadow: 0 0 10px rgba(191, 221, 191, 0.3);
  cursor: pointer;
}
.month-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #aaa;
  opacity: 0.4;
}
.month-label {
  position: absolute;
  top: -20px;
  font-size: 12px;
  transform: translateX(-50%);
  background: #fff;
  padding: 2px 4px;
  border-radius: 3px;
  border: 1px solid #ddd;
}
#prevYear, #nextYear {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  margin: 10px 10px;
  font-size: 14px;
  text-align: center;
  color: grey;
  background-color: #f8f9fa;
  border: 1px solid grey;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
#prevYear:hover, #nextYear:hover {
  background-color: #e2e6ea;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}
#istTypSelector {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 10px 0;
  width: 200px;
  transition: border-color 0.3s ease;
}
#istTypSelector:hover {
  border-color: #007bff;
}
#istTypSelector option {
  padding: 5px;
  font-size: 14px;
}
.week-label {
  position: relative;
  text-align: center;
  width: 30px;
  font-size: 12px;
}
.task-options-menu {
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 150px;
  font-size: 14px;
  z-index: 1000;
  border-radius: 5px;
  padding: 10px;
  display: none;
}
.task-options-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.task-options-menu li {
  padding: 8px;
  cursor: pointer;
}
.task-options-menu li:hover {
  background-color: #f0f0f0;
}
.task-bar::after,
.ist-bar::after,
.task-row::after {
  display: none !important;
  content: none !important;
}
.today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: red;
  z-index: 10;
  opacity: 0.8;
}
.custom-tooltip {
  position: absolute;
  background-color: rgba(60, 80, 70, 0.95);
  color: white;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}

/* Symbole für Bewegungen */
.movement-marker {
  position: absolute;
  z-index: 4;
  font-size: 18px; /* Größe des Symbols */
  text-align: center;
  width: 20px; /* Breite des Symbols */
  height: 20px; /* Höhe des Symbols */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Einstallen (Pfeil nach unten) */
.movement-marker.einstallen::before {
  content: "⬇️"; /* Pfeil nach unten */
  color: #2c912c; /* Grün für Einstallen */
}

/* Ausstalllen (Pfeil nach oben) */
.movement-marker.ausstallen::before {
  content: "⬆️"; /* Pfeil nach oben */
  color: #ad4b5e; /* Rot für Ausstalllen */
}

/* Umstallen (Pfeil links und rechts) */
.movement-marker.umstallen::before {
  content: "↔️"; /* Pfeil links und rechts */
  color: #f39c12; /* Gelb für Umstallen */
}

/* Verlust (Kreis) */
.movement-marker.verlust::before {
  content: "⚪"; /* Weißer Kreis */
  color: #6c757d; /* Grau für Verlust */
}

/* Container für das Tiermengen-Diagramm */
#tiermengen-container {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;

}

/* Überschrift des Tiermengen-Diagramms */
#tiermengen-container h2 {
    text-align: center;
    font-size: 24px;
    color: #333;
}
