/************ LIGHT VERSION  (DESIGN 22222) *************/
img {
  max-width: 100%;
}

/*
.panes-scroll5::after{
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  height: 750px;
  width: 100%;
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  z-index: 0;
}
.panes-scroll5{
  height: 750px;
  overflow: hidden;
}
*/


.slider {
  height: 500px;
  position: relative;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-flow: row nowrap;
  -ms-flex-flow: row nowrap;
  flex-flow: row nowrap;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
  -ms-flex-align: end;
  align-items: flex-end;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.slider__nav {
  width: 12px;
  height: 12px;
  margin: 2rem 12px;
  border-radius: 50%;
  z-index: 10;
  outline: 6px solid #ccc;
  outline-offset: -6px;
  box-shadow: 0 0 0 0 #333, 0 0 0 0 rgba(51, 51, 51, 0);
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.slider__nav:checked {
  -webkit-animation: check 0.4s linear forwards;
  animation: check 0.4s linear forwards;
}
.slider__nav:checked:nth-of-type(1) ~ .slider__inner {
  left: 0%;
}
.slider__nav:checked:nth-of-type(2) ~ .slider__inner {
  left: -100%;
}
.slider__nav:checked:nth-of-type(3) ~ .slider__inner {
  left: -200%;
}
.slider__nav:checked:nth-of-type(4) ~ .slider__inner {
  left: -300%;
}
.slider__inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 100%;
  -webkit-transition: left 0.4s;
  transition: left 0.4s;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-flow: row nowrap;
  -ms-flex-flow: row nowrap;
  flex-flow: row nowrap;
}
.slider__contents {
  height: 100%;
  padding: 2rem;
  text-align: center;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  -webkit-flex-flow: column nowrap;
  -ms-flex-flow: column nowrap;
  flex-flow: column nowrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.slider__image {
  font-size: 2.7rem;
  color: #2196F3;
}
.slider__caption {
  font-weight: 500;
  margin: 2rem 0 1rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
}
.slider__txt {
  color: #999;
  margin-bottom: 3rem;
  max-width: 300px;
}

@-webkit-keyframes check {
  50% {
    outline-color: #333;
    box-shadow: 0 0 0 12px #333, 0 0 0 36px rgba(51, 51, 51, 0.2);
  }
  100% {
    outline-color: #333;
    box-shadow: 0 0 0 0 #333, 0 0 0 0 rgba(51, 51, 51, 0);
  }
}

@keyframes check {
  50% {
    outline-color: #333;
    box-shadow: 0 0 0 12px #333, 0 0 0 36px rgba(51, 51, 51, 0.2);
  }
  100% {
    outline-color: #333;
    box-shadow: 0 0 0 0 #333, 0 0 0 0 rgba(51, 51, 51, 0);
  }
}


/***********  STYLING THE TAB SYSTEM ************/

/* Tabs oben nebeneinander, gleiche Breite */
#tab-area5{
  padding: 1em;
}
#tab-area5 .tab5 {
  flex: 1 0 auto;
  border-bottom: 3px solid;
}
#tab-area5 span.tab5:first-of-type:last-of-type {
  flex: 0 0 100%;
}

#tab-area5 .tab5 label {
  display: block;
  cursor: pointer;
}

#tab-area5 {
  width: 100%;
	position: relative;
  float:left;
  display: flex;
  flex-wrap: wrap;
}

/* Styles for the tabs */
.tab5 {
  position: relative;
  height: 45px;
	float: left;
	cursor: pointer;
	border-right: 1px solid rgb(204, 204, 204);
}
.tab5:last-of-type {
  border:0;
}


.tab5 label {
  display: flex !important;
  position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 2;
  align-items: center;
  margin: 0 0 0 1em;
}

input[name=pane5] {
	display: none;
}

/* Styles for the panes and their parent wrapper */
.panes-scroll5 {
  width: 100%; /*598px*/
	position: relative;
  overflow: hidden;
	clear: both;
  border: 1px solid #dddddd;
	border-top: none;
  -moz-border-radius: 0 0 8px 8px;
  -webkit-border-radius: 0 0 8px 8px;
  border-radius: 0 0 8px 8px;
  -moz-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
}

.panes-items5 {
	width: 600%;
	position: relative;
	-webkit-transition: margin-left 400ms ease-in-out ;
	-moz-transition: margin-left 400ms ease-in-out ;
	-o-transition: margin-left 4ms ease-in-out ;
	-ms-transition: margin-left 400ms ease-in-out ;
	transition: margin-left 400ms ease-in-out ;
}

.panes-items5 > div {
  padding: 1em;
	width: 16.66666666666667%;
	height: 0;
	float: left;
}


/******************** THE TAB SWITCHING FUNCTIONALITY **************/

/* On page load with no hash tag in url, display first pane and highlight first tab */
.panes-items5 > div:first-of-type { height: auto; }
#active5 { left: 27px;}


/* On url hash change set zero height for all panes */
input[name=pane5]:checked ~ .panes-scroll5 .panes-items5 > div { height: 0; }


/* Scroll the required pane into view */
#p15:checked ~ .panes-scroll5 .panes-items5 { margin-left: 0;}
#p25:checked ~ .panes-scroll5 .panes-items5 { margin-left: -100%;}
#p35:checked ~ .panes-scroll5 .panes-items5 { margin-left: -200%;}
#p45:checked ~ .panes-scroll5 .panes-items5 { margin-left: -300%;}
#p55:checked ~ .panes-scroll5 .panes-items5 { margin-left: -400%;}
#p65:checked ~ .panes-scroll5 .panes-items5 { margin-left: -500%;}
#p75:checked ~ .panes-scroll5 .panes-items5 { margin-left: -600%;}


/* After the previous step now set the height of the appropriate pane */
#p15:checked ~ .panes-scroll5 .panes-items5 > div:nth-of-type(1) ,
#p25:checked ~ .panes-scroll5 .panes-items5 > div:nth-of-type(2) ,
#p35:checked ~ .panes-scroll5 .panes-items5 > div:nth-of-type(3) ,
#p45:checked ~ .panes-scroll5 .panes-items5 > div:nth-of-type(4) ,
#p55:checked ~ .panes-scroll5 .panes-items5 > div:nth-of-type(5) ,
#p65:checked ~ .panes-scroll5 .panes-items5 > div:nth-of-type(6) ,
#p75:checked ~ .panes-scroll5 .panes-items5 > div:nth-of-type(7) {
	height: auto;
}

/* Aktiv: Balken einblenden */
#p15:checked + .tab5 label::before { opacity: 1; }
#p25:checked + .tab5 label::before { opacity: 1; }
#p35:checked + .tab5 label::before { opacity: 1; }
#p45:checked + .tab5 label::before { opacity: 1; }
#p55:checked + .tab5 label::before { opacity: 1; }
#p65:checked + .tab5 label::before { opacity: 1; }
#p75:checked + .tab5 label::before { opacity: 1; }
