.responsive-tabs {width: 100%; margin-top: 20px;}
.responsive-tabs .state {position: absolute; left: -10000px;}

.responsive-tabs .flex-tabs {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  text-align: center;
}

/* Exception for tab label */
.flex-tabs label .FBh3 {text-align: center; padding: 0px 10px 0px 10px;}

/****** 4-Tab and 3-Tab Layout and spacing ********/
.responsive-tabs .flex-tabs .tab, .responsive-tabs .flex-tabs .threetabs {padding: 10px 0px 0px 0px; word-wrap: break-word;}

.responsive-tabs .flex-tabs .panel {
  padding: 20px;
  display: none;
  width: 100%;
  -webkit-flex-basis: auto;
  -ms-flex-preferred-size: auto;
  flex-basis: auto;
}

.responsive-tabs .tab, .responsive-tabs .threetabs {
  display: inline-block;
  padding: 10px;
  vertical-align: top;
  cursor: hand;
  cursor: pointer;
}


/************************************************
Styling of checked tabs
************************************************/

   /* Reveal panel of checked tabs */
   #tab-one:checked ~ .tabs #tab-one-panel, #tab-two:checked ~ .tabs #tab-two-panel, #tab-three:checked ~ .tabs #tab-three-panel, #tab-four:checked ~ .tabs #tab-four-panel {display: block;}

   /* Size and background color of checked tabs for threetabs */
   .responsive-tabs .flex-tabs .threetabs {width: calc((100vw - 80px) / 3); height: 28vw;}
   #tab-one:checked ~ .tabs .threetabs.lightleguppinkBG {background-color: var(--leguppinkextralight); color:#000; height: calc(28vw + 20px);}
   #tab-two:checked ~ .tabs .threetabs.mildorangeBG {background-color: var(--beneorangelight); color:#000; height: calc(28vw + 20px);}
   #tab-three:checked ~ .tabs .threetabs.lightbeneblueBG {background-color: var(--beneblueextralight); color:#000; height: calc(28vw + 20px);}




   /* Styling for images in checked tabs */
   #tab-one:checked ~ .tabs #tab-one-label, #tab-two:checked ~ .tabs #tab-two-label, #tab-three:checked ~ .tabs #tab-three-label, #tab-four:checked ~ .tabs #tab-four-label {cursor: default;}


   #tab-one:checked ~ .tabs .threetabs .imgbox.einzelicon {background-position: 100% 0%; transform: scale(1.1);}
   #tab-two:checked ~ .tabs .threetabs .imgbox.halbprivaticon {background-position: 100% 0%; transform: scale(1.1);}
   #tab-three:checked ~ .tabs .threetabs .imgbox.mgkicon {background-position: 100% 0%; transform: scale(1.1);}

   #tab-one:checked ~ .tabs .threetabs .imgbox.primaricon {background-position: 100% 0%; transform: scale(1.1);}
   #tab-two:checked ~ .tabs .threetabs .imgbox.sekundaricon {background-position: 100% 0%; transform: scale(1.1);}
   #tab-three:checked ~ .tabs .threetabs .imgbox.gymiicon {background-position: 100% 0%; transform: scale(1.1);}

    #tab-one:checked ~ .tabs .threetabs .imgbox.langgymi {background-position: 100% 0%; transform: scale(1.1);}
    #tab-two:checked ~ .tabs .threetabs .imgbox.kurzgymi {background-position: 100% 0%; transform: scale(1.1);}
    #tab-three:checked ~ .tabs .threetabs .imgbox.BMS {background-position: 100% 0%; transform: scale(1.1);}

.flex-tabs .threetabs.lightleguppinkBG:hover {background-color: var(--leguppinkextralight);}
.flex-tabs .threetabs.mildorangeBG:hover {background-color: var(--beneorangelight);}
.flex-tabs .threetabs.lightbeneblueBG:hover {background-color: var(--beneblueextralight);}

/* prevents mouse-over styling of checked tabs */
   #tab-one:checked ~ .tabs .FBchoosebox.lightleguppinkBG, #tab-two:checked ~ .tabs .FBchoosebox.mildorangeBG, #tab-three:checked ~ .tabs .FBchoosebox.lightbeneblueBG {
     -moz-box-shadow: inset 0 0 0px rgba(255, 255, 255, 0.85);
      -webkit-box-shadow: inset 0 0 0px rgba(255, 255, 255, 0.85);
      box-shadow: inset 0 0 0px rgba(255, 255, 255, 0.85);
    }







/************************************************
Accordion
************************************************/
/* Acordeon styles */
.tabwrap {
  margin: 16px 0px 12px 0px;

}
.tab {
  position: relative;
  width: 100%;
  overflow: hidden;
}

}
.threetabs {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.tabs label h2 {font-size: 2vw;}

input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}
/*
.blue label {
  position: relative;
  display: block;
  padding: 0 0 0 0;
  font-weight: bold;
  line-height: 1.3;
  cursor: pointer;
  font-size: 1.8vw;
  background: inherit;
  color: #000;
  margin-bottom: 20px;
}

.blue label:hover {text-decoration: underline;}
*/
.tab-content {
  max-height: 0;
  overflow: hidden;
  -webkit-transition: max-height .35s;
  -o-transition: max-height .35s;
  transition: max-height .35s;
}

.tab-content .FBtext  {
  margin-top: 0px;
}

.tab-content .FBtext:last-child {
  margin-bottom: 40px;
}
input:checked ~ .tab-content {
  max-height: 20000px; /*sets the max height of the open (checked) container */

  overflow: scroll;
}

input:checked ~ label {
  font-weight: bold;
}

label::after {
  position: absolute;
  right: -2.2vw;
  top: 0px;
  display: block;
  width: 2em;
  height: 2em;
  line-height: 0.7;
  text-align: center;
  -webkit-transition: all .35s;
  -o-transition: all .35s;
  transition: all .35s;
  font-size: 3vw;
}
input[type=checkbox] + label::after {
  content: "+";
}
input[type=checkbox]:checked + label::after {
  transform: rotate(315deg) translateX(1.2vw) translateY(0.5vw);
  }


  @media (min-width: 1200px) {
  .tabs label h2 {font-size: 24px;}

  .responsive-tabs .flex-tabs .threetabs {
    width: 373.33px;
    height: 336px;
    padding: 0px;
    word-wrap: break-word;
  }

  /* Styling for size and background color of checked tabs */
  #tab-one:checked ~ .tabs .threetabs.lightleguppinkBG {color:#000; height: 356px;}
  #tab-two:checked ~ .tabs .threetabs.mildorangeBG {color:#000; height: 356px;}
  #tab-three:checked ~ .tabs .threetabs.lightbeneblueBG {color:#000; height: 356px;}


}


@media (max-width:850px), (hover: none)  {
    /* Icon */
    label::after {
      right: -3vw;
      font-size: 3vw;
    }
    input[type=checkbox]:checked + label::after {
      transform: rotate(315deg) translateX(1.6vw) translateY(0.9vw);
      }

      .responsive-tabs .flex-tabs .threetabs {width: 29.7vw; height: 35vw;}

      #tab-one:checked ~ .tabs .threetabs.lightleguppinkBG {height: calc(35vw + 20px);}
      #tab-two:checked ~ .tabs .threetabs.mildorangeBG {height: calc(35vw + 20px);}
      #tab-three:checked ~ .tabs .threetabs.lightlegupgreenBG {height: calc(35vw + 20px);}


}

@media (max-width: 667px) {
  /* Icon */
  label::after {
    right: -4vw;
    font-size: 3vw;
  }

  .tabs label h2 {font-size: 16px;}

  .responsive-tabs .flex-tabs .threetabs {width: calc((100vw - 40px)/3); height: 36vw;}

  #tab-one:checked ~ .tabs .threetabs.lightleguppinkBG {height: calc(36vw + 20px);}
  #tab-two:checked ~ .tabs .threetabs.mildorangeBG {height: calc(36vw + 20px);}
  #tab-three:checked ~ .tabs .threetabs.lightlegupgreenBG {height: calc(36vw + 20px);}


  input[type=checkbox]:checked + label::after {
    transform: rotate(315deg) translateX(2.8vw) translateY(1.3vw);
    }

    .responsive-tabs .flex-tabs .panel {
      padding: 20px;
    }

}
