
/* Fortschrittsbalken */
.laden {
    background: rgba(0, 0, 0, 0) linear-gradient(90deg, #f00, #ffa500, #ff0, #008000, #00f, #800080) repeat scroll 0 0;
    height: 1.5%;
    width: 100%;
    z-index: 2;
    animation: 6s ease-out 1s normal none infinite running balken;
    bottom: -98.5%;
    position: relative;
}

@keyframes balken {
    0% {opacity: 0; width: 0;}
   10% {opacity: 0.2; width: 0;}
   80% {opacity: 0.8; width: 100%;}
  100% {opacity: 0; width: 100%;}
}

/* Pause-Funktion */
.pause {
    color: #eee;
    font: bolder 1.3em/2 Impact;
    left: 95%;
    opacity: 0;
    position: relative;
    top: 2%;
    transition: all 0.5s ease 0s;
    z-index: 2;
}

.pause::after {
    content: "I I";
}

#stapel:hover .pause, #stapel3:hover .pause {
    opacity: 1;
}


/* Stapel-Definition */

#stapel2 {
   margin-top: 67%;
}

#stapel1 {
    background: #999 none repeat scroll 0 0;
    border: 5px solid #eee;
    box-shadow: 1px 1px 5px 2px #777;
    cursor: pointer;
    margin: 1em auto -2em;
    overflow: hidden;
    position: inline-block;
    width: calc(100%-20px);
    position: relative;

}

#stapel3 {
    position: absolute;
    top: 0;
    bottom: 0;:
    left: 0;
    right: 0;
    width: 100%;
}


#stapel3 figure {
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}

#stapel3 figcaption {
    color: #fff;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    font: 1.3em serif;
    letter-spacing: 0.1em;
    position: relative;
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
    opacity: 0;
    overflow: hidden;
    bottom: 20px;
    transition: all 1s ease 0s;
}

#stapel3 figcaption::after {
    background: #fff none repeat scroll 0 0;
    bottom: 10%;
    content: "";
    height: 0.1em;
    left: 0;
    position: absolute;
    top: 0;
    transform: translate3d(-100%, 0px, 0px);
    transition: transform 0.5s ease 0s;
    width: 100%;
}

#stapel3:hover figcaption, #stapel3:hover figcaption::after {
    opacity: 1;
    transform: translate3d(0px, 0px, 0px);
}


#stapel3 figure:nth-of-type(1) {animation: 246s ease-in-out 0s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(2) {animation: 246s ease-in-out 6s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(3) {animation: 246s ease-in-out 12s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(4) {animation: 246s ease-in-out 18s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(5) {animation: 246s ease-in-out 24s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(6) {animation: 246s ease-in-out 30s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(7) {animation: 246s ease-in-out 36s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(8) {animation: 246s ease-in-out 42s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(9) {animation: 246s ease-in-out 48s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(10) {animation: 246s ease-in-out 54s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(11) {animation: 246s ease-in-out 60s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(12) {animation: 246s ease-in-out 66s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(13) {animation: 246s ease-in-out 72s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(14) {animation: 246s ease-in-out 78s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(15) {animation: 246s ease-in-out 84s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(16) {animation: 246s ease-in-out 90s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(17) {animation: 246s ease-in-out 96s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(18) {animation: 246s ease-in-out 102s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(19) {animation: 246s ease-in-out 108s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(20) {animation: 246s ease-in-out 114s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(21) {animation: 246s ease-in-out 120s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(22) {animation: 246s ease-in-out 126s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(23) {animation: 246s ease-in-out 132s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(24) {animation: 246s ease-in-out 138s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(25) {animation: 246s ease-in-out 144s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(26) {animation: 246s ease-in-out 150s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(27) {animation: 246s ease-in-out 156s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(28) {animation: 246s ease-in-out 162s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(29) {animation: 246s ease-in-out 168s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(30) {animation: 246s ease-in-out 174s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(31) {animation: 246s ease-in-out 180s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(32) {animation: 246s ease-in-out 186s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(33) {animation: 246s ease-in-out 192s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(34) {animation: 246s ease-in-out 198s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(35) {animation: 246s ease-in-out 204s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(36) {animation: 246s ease-in-out 210s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(37) {animation: 246s ease-in-out 216s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(38) {animation: 246s ease-in-out 222s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(39) {animation: 246s ease-in-out 228s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(40) {animation: 246s ease-in-out 234s normal none infinite running bild3;} 
#stapel3 figure:nth-of-type(41) {animation: 246s ease-in-out 240s normal none infinite running bild3;} 
@keyframes bild3 { 
0.81%, 2.44%  {opacity: 1; right: 0; z-index: 1;} 
3.25%      {opacity: 0; right: 600px; z-index: 0;} 
0%, 100%    {opacity: 0; right: -600px; z-index: 0;} 
}
#stapel:hover figure, #stapel:hover .laden, #stapel3:hover figure, #stapel3:hover .laden {
    animation-play-state: paused;
}
