
/* * * * * * general changes for certain screen WIDTHs * * * * * * */

@media screen and (max-width: 1399px)
{
  #section3_gratismeting_waardebon
  {
    left: 40px;
  }

}

@media screen and (max-width: 1279px)
{
  #content, h1
  {
    padding-left: 15px; 
    padding-right: 15px;
  } 

}


@media screen and (max-width: 1023px)
{
  /* smaller regular menu */
  .menu li
  {
    width: 210px;
  }
  
  .menu
  {
    position: relative;
    margin: 0px auto;
    width: 874px; /*  margin + size + marginx2 + size + marginx2 + size + marginx2 + minisize + margin */
  }
  
  /* text on home smaller */
  
  #section1_homecontent p
  {
    font-size: 18px;
  }

}

@media screen and (max-width: 979px)
{
  /* header font size smaller */

  h1
  {
    font-size: 23px;
  }


  /* voordelencontent: nachtzichttest below opsomming */

  #section2_voordelencontent #opsomming
  {
    float:left;
    width: 100%;
  }
  
  #section2_voordelencontent #nachtzichttest
  {
    float: left;
    width:100%;
    margin-left: 0px;
    
  } 


}

@media screen and (max-width: 939px)
{
  /* Home link gone */
  #menuitem_home
  {
    display:none;
  }
  .menu
  {
    width: 686px; /*  margin + size + marginx2 + size + marginx2 + size + marginx2 + minisize + margin */
  }
  
  #section3_gratismeting_waardebon
  {
    width:186px;
  }
  
  h2
  {
    font-size: 36px;
  }
  
  #section4_locatorcontent #addressInput
  {
    width: 250px;
  }
  
    #section1_homecontent p
  {
    font-size: 17px;
  }
}

@media screen and (max-width: 767px)
{
  /* baseline text swaps to shorter version */
  
  h1 #baseline
  {
    display:none;
  }
    
  h1 #shortbaseline
  {
    display: inline;
  }
    
  h2
  {
    font-size: 31px;
  }
  
  /* text on home smaller */
  
  #section1_homecontent p
  {
    font-size: 15px;
  }
  
}


@media screen and (max-width: 719px)
{
  /* break the search header */
  
    #section4_locatorcontent #mapsearchcontrols, #section4_locatorcontent h2
    {
      display: block;
      float:none;
      width: 100%;
    }
    
    #section4_locatorcontent #addressInput 
    {
      display: block;
      float:none;
      width: 100%;
      margin-top: 5px;
    }
    
    /* rearrange waardebon */
    
    #section3_gratismeting_waardebon 
    {
      position:relative;
      display:block;
      top:auto;
      left:auto;
      margin:0px auto;
    }
    
    #section3_gratismeting_img1
    {
      float: none;
      width: 100%;
    }
    
    /* text on home smaller */
  
    #section1_homecontent p
    {
      position: relative;
      padding:30px 40px 0px 40px;
      left: auto;
      top: auto;
      font-size: 18px;
    }
    
    
    /* smaller titles */
    
    h2
    {
      font-size: 30px;
    }
    
    /* remove minimum height of 100% */
    .pagewrapper 
    {
      min-height: 0;
    }
    
    hr
    {
      display: block;
    }
    
    .scrollbutton
    {
      display: none;
    }
    
    .pagewrapper
    {
      /*padding-top: 20px;*/
    }
    
       
}

@media screen and (max-width: 599px)
{
  #section2_voordelencontent #opsomming img.illustratie
  {
    float: none;
    display: block;
    margin-right: 0px;
  }
  
  #section2_voordelencontent #opsomming img.nummer
  {
    left:-11px;
  }

}

@media screen and (max-width: 524px)
{
  h1 #shortbaseline
  {
    display: none;
  }
}

@media screen and (max-width: 405px)
{
  #section2_voordelencontent #opsomming img.illustratie
  {
    width: 100%;
  }
  
  #section1_homecontent p, #section2_voordelencontent, #section3_gratismetingcontent 
  {
    padding-left: 20px;
    padding-right: 20px;    
  }
  
  #section3_gratismeting_img1 
  {
    left: 20px;
  }
}

@media screen and (max-width: 380px)
{
  #section1_homecontent p
  {
    font-size: 1em;
  }
}



/* * * * * * general changes for certain screen HEIGHTs * * * * * * */


@media screen and (max-height: 1079px)
{
  /* smaller lower menu bar */

  #footer
  {
    height: 122px;
  }
  
  .pagewrapper
  {
    padding-bottom: 122px;
  }
  
  #section4_locator
  {
    padding-bottom: 191px;
  } 

  #menubalk
  {
    bottom: 54px;
  }
 
}


@media screen and (max-height: 790px)
{
  /* size of header bar */

  #header, h1
  {
      height: 84px;
  }
  
  #section1_home.pagewrapper 
  {
    padding-top: 84px;
  } 
  
  h1
  {
    line-height:84px;
  }
  
  h1 #zeissheaderlogo, h1 #showmenubutton
  {
    margin-top:20px;
  }

  
  
  
  /* position of lower menu bar */

  #footer
  {
    height: 88px;
  }
  
  .pagewrapper
  {
    padding-top: 84px;
    padding-bottom: 88px;
  }
  
  #section4_locator
  {
    padding-bottom: 157px;
  } 

  #menubalk
  {
    bottom: 20px;
    height: 110px;
  }

  .menu, #menubalk
  {
    height: 110px;
  }

  .menu li
  {
    background-size: auto 60px;
  }
  
  #menuitem_home
  {
    background-size: auto 90px;
    background-position: bottom center;
  }
}


@media screen and (max-height: 600px), screen and (max-width: 719px)
{

  /* show menu bar button */
  
  h1 #showmenubutton
  {
    display: block;
  }

  h1
  {
    text-align: center;
  }

  /* hide menu bar */
  
  #menubalk
  {
    display:none;
  }
  
  #footer
  {
    height: 21px;
  }
  
  .pagewrapper
  {
    padding-bottom: 21px;
  }
  
  #section4_locator
  {
    padding-bottom: 21px;
  }
  

}



/* * * * * * specific changes for certain content and certain WIDTHs * * * * * * */


/* voordelencontent: opsomming small size between 599 - 767 and 979 - 1399 */

@media screen and (max-width: 1399px) and (min-width:979px), screen and (max-width:767px) and (min-width:599px)
{
  #section2_voordelencontent #opsomming img.illustratie
  {
    width: 182px;
  }
  
  #section2_voordelencontent #opsomming img.nummer
  {
    left:170px;
  }
}

  
/* voordelencontent: nachtzichttest smaller size between 979 - 1399 */
  
@media screen and (max-width: 1399px) and (min-width:979px)
{
  #section2_voordelencontent #nachtzichttest
  {
    width: 323px;
  }
}


@media screen and (max-width: 719px)
{
  /* other type of menu */
  
  #menubalk
  {
    z-index: 4;
    width:100%;
    height: auto;
    top:104px;
    bottom: auto;
    left:0px;
    right: auto;
    padding-top: 0px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
  }
  
  .menu
  {
    width: 100%;
    height: auto;
    line-height: 40px;
  }
  
  .menu li
  {
    width: 100%;
    height: 45px;
    float: none;
    -moz-border-radius: 0px;
    -webkit-border-radius: 0px;
    -khtml-border-radius: 0px;
    border-radius: 0px;
    margin: 0px;
    border-top: 1px solid #C7C7C7;
    border-left: 1px solid #C7C7C7;
    border-right: 1px solid #C7C7C7;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;  
  }
  
  #menuitem_voordelen
  {
    background-image: linear-gradient(to bottom, #FFFFFF, #DFDFDF);
  }
  
  #menuitem_gratismeting
  {
    background-image: linear-gradient(to bottom, #FFFFFF, #DFDFDF);
  }
  
  #menuitem_locator
  {
    background-image: linear-gradient(to bottom, #FFFFFF, #DFDFDF);
  }
  
  /* #menuitem_home is already invisible */
  

}


@media screen and (max-height: 790px) and (max-width: 719px)
{
  #menubalk
  {
    top:84px;
  }
}



