.gallery {
  position: relative;
  background: none;
  border: none;
}

.gallery figure {
  position: absolute;
  top: 0;
  left: 0;
}

.gallery figcaption {
  position: absolute;
  left: 1em;
  font-size: 1em;
  font-weight: bold;
  bottom: 0.5em;
  color: white;
}

@keyframes bilder {
   0% {opacity: 1;}
  34% {opacity: 1;}
  35% {opacity: 0;}
 100% {opacity: 0;}
}

.gallery figure:nth-of-type(1) {
  animation: bilder 15s 7s infinite;
}

.gallery figure:nth-of-type(2) {
  animation: bilder 15s 2s infinite;
}

.gallery figure:nth-of-type(3) {
  animation: bilder 15s 12s infinite;
}

@keyframes wechseln {
    0% {opacity: 1; transform: scale(1,1); z-index: 20;}
   20% {opacity: 1; transform: scale(1,1);}
   34% {opacity: 0; transform: scale(0,0);}
  100% {opacity: 1; transform: scale(0,0);}
}

.gallery figure:nth-of-type(4) {
  animation: wechseln 15s 10s infinite;
}

.gallery figure:nth-of-type(5) {
  animation: wechseln 15s 5s infinite;
}

.gallery figure:nth-of-type(6) {
  animation: wechseln 15s infinite;
}

