After a set period of being offline the owned buildings of that clan/player cannot be raided. I believe it’s after 30 minutes if memory serves.