/* Garten-Kachel */

/* === NEUE GARTEN KACHEL === */
.kachel_garten {
  position: relative;
  overflow: hidden;
  background-color: #008a00;
  width: 100%;
  height: 100%;
}

.garten_raum {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 100%, #202c39 30%, #1e2732 100%);
  z-index: 1;
}

#gartenCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

/* Neues Regalbrett für den festen Stand */
.garten_regalbrett {
  position: absolute;
  bottom: 15px;
  left: 5%;
  width: 90%;
  height: 4px;
  background-color: #34495e;
  border-radius: 2px;
  z-index: 2;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Gruppen für präzise Zuordnung von Pflanze und Topf */
.pflanz_gruppe {
  position: absolute;
  bottom: 19px;
  width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.pg_links { left: 5%; }
.pg_mitte { left: 50%; transform: translateX(-50%); }
.pg_rechts { right: 5%; }

/* Die Töpfe stehen ganz vorne */
.topf {
  width: 26px;
  height: 16px;
  border-radius: 2px 2px 4px 4px;
  z-index: 5;
  position: relative;
  box-shadow: inset -4px 0 0 rgba(0,0,0,0.2);
}
.topf_blau { background-color: #2d89ef; border-top: 2px solid #1c6abf; }
.topf_weiss { background-color: #ffffff; border-top: 2px solid #e0e0e0; }
.topf_orange { background-color: #e67e22; border-top: 2px solid #d35400; }

/* Pflanzen sinken durch negativen Abstand exakt IN den Topf */
.garten_monstera, .garten_blume, .garten_kaktus {
  position: relative;
  z-index: 4;
  margin-bottom: -5px;
  transform-origin: bottom center;
}

/* Pflanze 1: Monstera */
.garten_monstera {
  width: 26px;
  height: 30px;
  animation: garten_wippen 3.5s infinite alternate ease-in-out;
}
.monstera_blatt_einzeln {
  position: absolute;
  background-color: #2ecc71;
  border-radius: 50% 50% 10% 50%;
}
.gb1 { width: 13px; height: 21px; bottom: 0; left: 0; transform: rotate(-25deg); }
.gb2 { width: 11px; height: 19px; bottom: 7px; left: 7px; transform: rotate(5deg); }
.gb3 { width: 12px; height: 20px; bottom: 2px; left: 13px; transform: rotate(35deg); }

/* Pflanze 2: Doppel-Blume */
.garten_blume {
  width: 24px;
  height: 35px;
  animation: garten_wippen 4s infinite alternate ease-in-out;
}
.blume_stiel_einzeln {
  position: absolute;
  bottom: 0;
  width: 2px;
  background-color: #27ae60;
}
.bs1 { left: 8px; height: 28px; }
.bs2 { left: 16px; height: 22px; transform: rotate(15deg); }

.blume_punkt {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.bp1 { top: 0; left: 4px; background-color: #ff0000; box-shadow: 0 0 4px #ff0000; }
.bp2 { top: 5px; left: 10px; background-color: #ffc40d; box-shadow: 0 0 4px #ffc40d; }
.bp3 { top: 6px; left: 18px; background-color: #9b59b6; box-shadow: 0 0 4px #9b59b6; }
.bp4 { top: 12px; left: 22px; background-color: #ffffff; box-shadow: 0 0 4px #ffffff; }

/* Pflanze 3: Kaktus */
.garten_kaktus {
  width: 20px;
  height: 28px;
  animation: garten_wippen 5s infinite alternate ease-in-out;
}
.kaktus_stamm {
  position: absolute;
  bottom: 0;
  left: 6px;
  width: 8px;
  height: 24px;
  background-color: #229954;
  border-radius: 4px;
}
.kaktus_arm_links {
  position: absolute;
  bottom: 8px;
  left: 1px;
  width: 5px;
  height: 8px;
  border: 2.5px solid #229954;
  border-top: none;
  border-right: none;
  border-radius: 0 0 0 3px;
}
.kaktus_arm_rechts {
  position: absolute;
  bottom: 14px;
  right: 1px;
  width: 5px;
  height: 6px;
  border: 2.5px solid #229954;
  border-top: none;
  border-left: none;
  border-radius: 0 0 3px 0;
}

/* Pflanze 4: Hängend von der Decke */
.haenge_pflanze {
  position: absolute;
  top: 0;
  right: 15px;
  width: 30px;
  height: 40px;
  z-index: 3;
  animation: garten_wippen 4.5s infinite alternate ease-in-out;
  transform-origin: top center;
}
.ranke {
  position: absolute;
  top: 0;
  width: 2px;
  background-color: #27ae60;
  border-radius: 1px;
}
.r1 { left: 5px; height: 35px; }
.r2 { left: 14px; height: 20px; }
.r3 { left: 23px; height: 28px; }

.ranke::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 6px;
  height: 6px;
  background-color: #2ecc71;
  border-radius: 50% 0 50% 0;
}

@keyframes garten_wippen {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}
