@import url('https://fonts.googleapis.com/css?family=Ubuntu&display=swap');
body{
  font-family: 'Ubuntu', sans-serif;
  max-height: 700px;
}
#head {
  width: 1200px;
  margin-top: 0;
}
#wrapper {
  background-color: white;
  width: 1200px;
  margin: 0 auto;
  bottom: 0px;
}
.rahmen {
  width: 960px;
  margin-left: auto;
  margin-right: auto;
  text-align: center; 
}
h1{
  display: none;
}
h2 {
  text-align: center;
  font-size: 30px;
}
.top{
  text-align: center;
}
#unten {
  background-color: rgba(255,127,0,1);
  width: 1000px;
  margin: 10px auto;
  height: 40px;
}
#unten p {
  text-align: center;
  padding-top: 10px;
  font-size: 16px;
  margin-top: 20px;
  color: white;
}
nav ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
      margin-bottom: 20px;
    padding-top: 20px;
}
nav li {
  display: inline;
  font-size: 24px;
  padding-left: 20px;
}
nav a {
  color: rgba(255,127,0,1);
  text-decoration: none;
  font-size: 24px;
}
nav a:hover {
  color:#1e90ff;
}
#aktiv {
  color: 	#1e90ff; 
}
.zurück {
    cursor: pointer;
  margin-top: 18px;
  margin-left: 18px;
  font-size: 32px;
}

 /* galerie */

#galerie input {
  display: none;
}
#galerie section img {
  cursor: pointer;
  margin-top: 18px;
  margin-left: 18px;
}
#lightbox {
  background-color: rgba(0,0,0,0.75);
  position: fixed;
  top: 0px;
  right: 0px;
  bottom: 100vh;
  overflow: hidden;
  left: 0px;
  z-index: 1;
  text-align: center;
}
#galeriebild {
  width: 960px;
  height: 640px;
  top: 200%;
  padding: 20px;
  transition: all 700ms;
  display: inline-block;
  margin-top: 50px;
  background-color: rgba(255,255,255,0.5);
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center center;
  cursor: pointer;
  position: relative;
}
#galeriebild::after {
  content: "X";
  background-color: rgba(255,127,0,1);
  width: 40px;
  height: 40px;
  border-radius: 20%;
  border: 2px solid blue;
  display: inline-block;
  font-family: 'Ubuntu', sans-serif;
  font-size: 30px;
  line-height: 30px;
  text-align: center;
  position: absolute;
  top: 30px;
  right: 30px;
  opacity: 0.65;
}

#radio1:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_CFS_GS_028gr.jpg")}
#radio2:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_CFS_RL_044gr.jpg")}
#radio3:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Grob_M_052gr.jpg")}
#radio4:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_microlab1_gr.jpg")}
#radio5:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Zetka_2er_gr.jpg")}
#radio6:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_ZETKA_2_gr.jpg")}
#radio7:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Zetka_3a_gr.jpg")}
#radio8:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_BMW_2gr.jpg")}
#radio9:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_BMW1gr.jpg")}
#radio10:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Technomatik_gr.jpg")}
#radio11:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_ZETKA_MONT_TEILE_095_gr.jpg")}
#radio12:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_secure_gr.jpg")}
#radio13:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Klinkau_gr.jpg")}
#radio14:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Kraib098gr.jpg")}
#radio15:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Kraiburg_224_225gr.jpg")}

input[id^=radio]:checked ~ #lightbox {bottom: 0} 

input[id^=radio]:checked ~ #lightbox #galeriebild {top: 0;}


/*** Tablet-Regeln ***/


@media (max-width:1024px){
 
#head {
  width: 750px;
  margin-top: 0;
}
#wrapper 
{
   background-color: #EBEBEB;
   width: 750px;
   margin: 0 auto;
   bottom: 0px;
}
.rahmen {
   width: 650px;
}
#galerie input {
  display: none;
}
#galerie section img {
  cursor: pointer;
  margin-top: 18px;
  margin-left: 18px;
}
#lightbox {
  background-color: rgba(0,0,0,0.75);
  position: fixed;
  top: 0px;
  right: 0px;
  bottom: 100vh;
  overflow: hidden;
  left: 0px;
  z-index: 1;
  text-align: center;
}
#galeriebild {
  width: 600px;
  height: 400px;
  top: 200%;
  padding: 20px;
  transition: all 700ms;
  display: inline-block;
  margin-top: 150px;
  background-color: rgba(255,255,255,0.5);
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center center;
  cursor: pointer;
  position: relative;
}
#galeriebild::after {
  content: "X";
  background-color: rgba(255,127,0,1);
  width: 30px;
  height: 30px;
  border-radius: 20%;
  border: 2px solid blue;
  display: inline-block;
  font-family: 'Ubuntu', sans-serif;
  font-size: 30px;
  line-height: 30px;
  text-align: center;
  position: absolute;
  top: 30px;
  right: 30px;
  opacity: 0.65;
}

#radio1:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_CFS_GS_028tab.jpg")}
#radio2:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_CFS_RL_044tab.jpg")}
#radio3:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Grob_M_052tab.jpg")}
#radio4:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_microlab1_tab.jpg")}
#radio5:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Zetka_2er_tab.jpg")}
#radio6:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_ZETKA_2_tab.jpg")}
#radio7:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Zetka_3a_tab.jpg")}
#radio8:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_BMW_2tab.jpg")}
#radio9:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_BMW1tab.jpg")}
#radio10:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Technomatik_tab.jpg")}
#radio11:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_ZETKA_MONT_TEILE_095_tab.jpg")}
#radio12:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_secure_tab.jpg")}
#radio13:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Klinkau_tab.jpg")}
#radio14:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Kraib098tab.jpg")}
#radio15:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Kraiburg_224_225tab.jpg")}

input[id^=radio]:checked ~ #lightbox {bottom: 0} 

input[id^=radio]:checked ~ #lightbox #galeriebild {top: 0;}


#unten {
  width: 750px;
}
}

/* Medienabfrage Smartphone */

@media (max-width: 600px) {
#head {
  width: 550px;
  margin-top: 0;
}
#wrapper {
   background-color: #E0E0E0;
   width: 100%;
   margin: 0 auto;
   bottom: 0px;
}
.spalte section {
  width: 50px;
  margin : 0;
  padding: 0;
}
.rahmen section {
  width: auto;
  margin : 10px;
  padding: 0;
}
.rahmen {
   width: 450px;
}
nav li {
    display: block;
}
#lightbox {
  background-color: rgba(0,0,0,0.75);
  position: fixed;
  top: 0px;
  right: 0px;
  bottom: 100vh;
  overflow: hidden;
  left: 0px;
  z-index: 1;
  text-align: center;
}
#galeriebild {
  width: 400px;
  height: 267px;
  top: 200%;
  padding: 20px;
  transition: all 700ms;
  display: inline-block;
  margin-top: 30px;
  background-color: rgba(255,255,255,0.5);
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center center;
  cursor: pointer;
  position: relative;
}
#galeriebild::after {
  content: "X";
  background-color: rgba(255,127,0,1);
  width: 30px;
  height: 30px;
  border-radius: 20%;
  border: 2px solid blue;
  display: inline-block;
  font-family: 'Ubuntu', sans-serif;
  font-size: 30px;
  line-height: 30px;
  text-align: center;
  position: absolute;
  top: 30px;
  right: 30px;
  opacity: 0.65;
}

#radio1:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_CFS_GS_028smart.jpg")}
#radio2:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_CFS_RL_044smart.jpg")}
#radio3:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Grob_M_052smart.jpg")}
#radio4:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_microlab1_smart.jpg")}
#radio5:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Zetka_2er_smart.jpg")}
#radio6:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_ZETKA_2_smart.jpg")}
#radio7:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Zetka_3a_smart.jpg")}
#radio8:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_BMW_2smart.jpg")}
#radio9:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_BMW1smart.jpg")}
#radio10:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Technomatik_smart.jpg")}
#radio11:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_ZETKA_MONT_TEILE_095_smart.jpg")}
#radio12:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_secure_smart.jpg")}
#radio13:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Klinkau_smart.jpg")}
#radio14:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Kraib098smart.jpg")}
#radio15:checked ~ #lightbox #galeriebild {background-image: url("../img/Ind_Kraiburg_224_225smart.jpg")}

input[id^=radio]:checked ~ #lightbox {bottom: 0} 

input[id^=radio]:checked ~ #lightbox #galeriebild {top: 0;}


#unten {
  width: 450px;
  height: 60px;
}
}
