/*
 * QUERIES
 */

 /* Small desktop 2 */
@media screen and (min-width: 1024px) and (max-width: 1500px) {
  #fromagerie #fromageriedurabilite .slowfoodimage {
    top: 15%;
    height: 70%;
  }
}

   /* Small desktop */
@media screen and (min-width: 1024px) and (max-width: 1200px) {
  h3, h3 p {
    font-size: 29px;
    line-height: 34px;
    color: #fff;
  }
  h2, h2 p {
    font-size: 40px;
    line-height: 46px;
  }
  #HomepageValeurs .valeurstitre {
    right: -12px;
    bottom: 250px;
  }
  #HomepageValeurs .valeursline {
    right: 36px;
  }
  .text, .text p, .text a {
    font-size: 15px;
    line-height: 20px;
  }
  #magasin .themes .topic .topictext .topicblocktext {
    margin-top: 0px;
  }
  #magasin .themes .topic button {
    bottom: 15px;
  }
  #magasin header .headerline2 {
    height: calc(100% + 40px);
  }
  #magasin #magasindurabilite svg {
    transform: translateX(-25px);
  }
  #magasin .textstaff {
    padding: 40px 75px;
  }
  #magasin .textstaff h3{
    margin-bottom: 0;
  }
  #fromagerie #fromageriedurabilite .slowfoodimage {
    top: 25%;
    height: 50%;
  }
  #fromagerie #fromageriedurabilite2 .durabilitetitle1 svg {
    margin-left: 0;
    transform: translateX(45px);
  }
  #fromagerie #fromageriedurabilite2 .durabilitetitle2 svg {
    transform: translateX(-25px);
  }
  #fromagerie .textstaff {
    padding: 40px 75px;
  }
}

  /* IPAD Portrait and Landscape */
@media screen and (min-width: 640px) and (max-width: 1023px) {
  h2, h2 p {
    font-size: 30px;
    line-height: 35px;
  }
  h3, h3 p {
    font-size: 30px;
    line-height: 35px;
  }
  .text, .text p, .text a {
    font-size: 16px;
    line-height: 22px;
  }
  #HomepageValeurs .valeursline {
    right: 5vw;
  }
  #HomepageValeurs .valeurstitre {
    right: 3px;
    bottom: 273px;
  }
  #HomepageValeurs .valeurlink div {
    margin-right: 15px;
  }
  #HomepageCallToPages button {
    bottom: 10px;
  }
  #HomepageLastNews {
    background: #E05828;
    width: 40vw;
    position: absolute;
    top: -30px;
    right: 0;
    padding: 65px 5vw 80px 40px;
  }
  #magasin .themes .topic .topictext .topicblocktext {
    margin-top: 0; 
    padding: 100px 0;
  }
  #magasin #magasindurabilite h3 p {
    transform: rotate(0);
  }
  #magasin #magasindurabilite h3 {
    left: 5vw;
    top: 100px;
  }
  #magasin #magasindurabilite {
    padding: 175px 0 100px 0;
  }
  #magasin .bottomline {
    top: calc(-60px);
  }
  #magasin .textstaff {
    width: 80%;
    padding: 30px 40px;
  }
  #magasin .textstaff h3 {
    margin-bottom: 0;
  }
  #fromagerie #histoire {
    padding: 250px 0 100px 0;
  }
  #fromagerie .historyline {
    top: 125px;
  }
  #fromagerie .textstaff {
    width: 80%;
    bottom: -150px;
    padding: 30px 40px;
  }
  #fromagerie #fromageriedurabilite .slowfoodtitle{
    margin-bottom: 30px;
  }
  #fromagerie #fromageriedurabilite svg{
    margin-left: 20px;
  }
  #fromagerie #fromageriedurabilite .slowfoodimage {
    position: relative;
    margin-top: 50px;
  }
  #fromagerie #fromageriedurabilite h3{
    position: relative;
    top: 0;
  }
  #fromagerie #fromageriedurabilite h3 p{
    transform: rotate(0);
  }
  #fromagerie #fromageriedurabilite {
    padding: 100px 0 0 0;
  }
  #fromagerie #producteurs .dot {
    width: 20px;
    height: 20px;
  }
  #fromagerie #iconlaiterie {
    top: 57%;
  }
  #fromagerie #fromageriedurabilite .slowfoodtitle, #fromagerie #fromageriedurabilite2 .durabilitetitle {
    flex-direction: column;
  }
  #fromagerie #fromageriedurabilite h3 p, #fromagerie #fromageriedurabilite2 .durabilitetitle1 h3 p {
    transform: rotate(0);
  }
  #fromagerie #fromageriedurabilite2 .durabilitetitle2 h3 p {
    transform: rotate(0);
  }
  #fromagerie #fromageriedurabilite2 .durabilitetitle1 h3 {
    position: relative;
    top: 0;
  }
  #fromagerie #fromageriedurabilite2 .durabilitetitle2 h3 {
    position: relative;
    top: 0;
    margin-top: 30px;
  }
  #fromagerie #fromageriedurabilite2 .durabilitetitle1 svg {
    margin-left: 15px;
  }
  #fromagerie #fromageriedurabilite2 {
    padding: 100px 0 70px 0;
  }
  #fromagerie #fromageriedurabilite2 .durabilitetitle {
    margin-bottom: 30px;
  }
  #fromagerie .historyline {
    height: calc(100% - 100px);
  }
  #new .text strong {
    font-size: 22px;
    line-height: 30px;
  }
  #new #blocks .block {
    padding-left: 20vw;
  }
  footer {
    padding: 80px 0 30px 0;
    text-align: center;
  }
  footer .socials {
    justify-content: center;
  }
  footer .logo, footer .socials{
    margin-bottom: 23px;
  }
  footer .copyright .text {
    justify-content: center;
  }
  #impressum .infodetailpage {
    padding-left: 7vw;
}
}

 /* Iphone Portrait and Landscape */
 @media screen and (max-width: 639px) {
  h2, h2 p {
    font-size: 28px;
    line-height: 33px;
  }
  h3, h3 p {
    font-size: 28px;
    line-height: 33px;
  }
  .text, .text p, .text a {
    font-size: 16px;
    line-height: 22px;
  }
  header .headerline2 {
    display: none;
  }
  header .languages {
    position: absolute;
    right: 3vw;
  }
  header .logo svg {
    margin-top: -8px;
  }
  header .Eyecatcher {
    height: 85%;
  }
  header nav .separator {
    height: 50px;
  }
  header .boutiquelink {
    border-left: 0.5px solid #fff;
    border-bottom: 0.5px solid #fff;
    height: 50px;
    width: calc(100% + 5vw);
    padding-left: 9vw;
  }
  header h2 {
    padding-bottom: 125px;
  }
  header button {
    bottom: 155px;
  }
  #HomepageProduits {
    padding-top: 50px;
  }
  #HomepageIntroText {
    padding: 70px 0 50px 0;
  }
  #HomepageIntroText .homeintro{
    padding-left: 5vw;
  }
  #HomepageLastNews {
    width: 100%;
    position: relative;
    top: 50px;
    right: 0;
    padding: 65px 5vw 80px 40px;
  }
  #HomepageProduits h3 {
    margin-top: 30px;
    position: absolute;
    left: 5vw;
    text-align: left;
  }
  #HomepageProduits .HomeProduit1 {
    margin-top: 100px;
  }
  #HomepageProduits .HomeProduit2 {
    margin-top: 50px;
  }
  #HomepageProduits .HomeProduit3 {
    margin-top: 50px; 
  }
  #HomepageProduits .text {
    margin-top: 50px;
  }
  #HomepageValeurs {
    padding: 130px 0 80px 0;
  }
  #HomepageValeurs .homepagevaleur {
    margin-bottom: 50px;
    z-index: 2;
  }
  #HomepageValeurs .valeurstitre {
    right: 0;
    top: 70px;
  }
  #HomepageValeurs .valeursline {
    height: 5%;
    right: 9vw;
    top: 130px;
  }
  #HomepageCallToPages {
    display: block;
  }
  #HomepageCallToPages div {
    width: 100%;
  }
  #HomepageCallToPages button {
    bottom: 10px;
  }
  #magasin .themes .topic button {
    bottom: 40px;
  }
  #magasin .themes .topic .topictext .topicblocktext {
    margin-top: 0; 
    padding: 70px 0 100px 0;
  }
  #magasin #magasindurabilite h3 p {
    transform: rotate(0);
  }
  #magasin #magasindurabilite h3 {
    left: 5vw;
    top: 100px;
  }
  #magasin #magasindurabilite {
    padding: 175px 0 100px 0;
  }
  #magasin .bottomline {
    top: calc(-60px);
  }
  #magasin .textstaff {
    width: 100%;
    padding: 70px 5vw 70px 10vw;    
    position: relative;
    left: 0;
    bottom: 0;
  }
  #magasin .bottomline {
    left: 5vw;
  }
  #magasin .textstaff h3 {
    margin-bottom: 0;
  }
  #fromagerie #fabrication #fabnumeros {
    width: 18%;
    height: 60%;
  }
  #fromagerie #fabrication #fabnumeros div {
    width: 50px;
    height: 50px;
  }
  #fromagerie #fabrication #fabnumeros div p {
    font-size: 45px;
  }
  #fromagerie .etape .grid-x {
    bottom: 50px;
  }
  #fromagerie #fabrication #fabnumeros div:nth-child(3) p, #fromagerie #fabrication #fabnumeros div:nth-child(4) p, #fromagerie #fabrication #fabnumeros div:nth-child(5) p {
    margin-top: -15px;
  }
  #fromagerie #histoire {
    padding: 100px 0 100px 0;
  }
  #fromagerie .historyline {
    display: none;
  }
  #fromagerie .textstaff {
    position: relative;
    width: 100%;
    bottom: 0;
    padding: 70px 40px;
    right: 0;
  }
  #fromagerie #fromageriedurabilite .slowfoodtitle{
    margin-bottom: 30px;
  }
  #fromagerie #fromageriedurabilite svg{
    margin-left: 20px;
  }
  #fromagerie #fromageriedurabilite .slowfoodimage {
    position: relative;
    margin-top: 50px;
  }
  #fromagerie #fromageriedurabilite h3{
    position: relative;
    top: 0;
  }
  #fromagerie #fromageriedurabilite h3 p{
    transform: rotate(0);
  }
  #fromagerie #fromageriedurabilite {
    padding: 100px 0 0 0;
  }
  #fromagerie #producteurs .dot {
    display: none;
  }
  #fromagerie #iconlaiterie {
    top: 57%;
  }
  #fromagerie #fromageriedurabilite .slowfoodtitle, #fromagerie #fromageriedurabilite2 .durabilitetitle {
    flex-direction: column;
  }
  #fromagerie #fromageriedurabilite h3 p, #fromagerie #fromageriedurabilite2 .durabilitetitle1 h3 p {
    transform: rotate(0);
  }
  #fromagerie #fromageriedurabilite2 .durabilitetitle2 h3 p {
    transform: rotate(0);
  }
  #fromagerie #fromageriedurabilite2 .durabilitetitle1 h3 {
    position: relative;
    top: 0;
  }
  #fromagerie #fromageriedurabilite2 .durabilitetitle2 h3 {
    position: relative;
    top: 0;
    margin-top: 30px;
  }
  #fromagerie #fromageriedurabilite2 .durabilitetitle1 svg {
    margin-left: 15px;
  }
  #fromagerie #fromageriedurabilite2 {
    padding: 100px 0 50px 0;
  }
  #fromagerie #fromageriedurabilite2 .durabilitetitle {
    margin-bottom: 30px;
  }
  #fromagerie #histoire .mainhistoiretitle h3 {
    margin-bottom: 30px;
  }
  #fromagerie #histoire .datetext {
    margin-top: 30px;
  }
  #fromagerie #histoire .date {
    margin-bottom: 50px;
  }
  #fromagerie #producteurs svg {
    display: none;
  }
  #fromagerie #producteurs .pinproducteur .text {
    display: block;
  }
  #fromagerie #producteurs .pinproducteur {
    position: relative;
    display: block;
    top: 0;
    left: 0;
    transform: none;
    margin-bottom: 30px;
  }
  #news #blog {
    padding: 120px 0 70px 0;
  }
  #new .text strong {
    font-size: 22px;
    line-height: 30px;
  }
  #new #blocks .block {
    padding-top: 50px;
    padding-left: 0;
  }
  #new #ContactHeader img {
    position: relative;
    width: 100%;
  }
  #new header {
    height: auto;
    min-height: auto;
  }
  footer {
    padding: 80px 0 30px 0;
    text-align: center;
  }
  footer .logo, footer .socials{
    margin-bottom: 23px;
  }
  footer .socials {
    justify-content: center;
  }
  footer .copyright .text {
    justify-content: center;
  }
 }