/* Styles for Popup window */
#popup-content {
  background-color: transparent !important;
  background: none ;
  text-align: left;
  position: relative;
  margin: 50px auto 0px auto;
}
.white-popup-block {
  background: #fff;
  padding: 0px 0px;
  text-align: left;
  max-width: 650px;
  margin: 0px auto;
  position: relative;
}

#popup img {
  margin-bottom: 0px;
  max-width: 100%;

}

.mfp-close-btn-in .mfp-close {
  color: #fff;
}

button.mfp-close {
  overflow: visible;
  cursor: pointer;
  background-color: transparent !important;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  box-shadow: none;
  touch-action: manipulation;
}

.mfp-close {
  position: absolute;
  background-repeat: no-repeat;
}

.closebtn {
  position: absolute;
  top: -30px;
  right: -30px;
  display: block;
  width: 30px;
  height: 30px;
  background-color: transparent;
  background-image: url(/files/myFiles/gfx/page/buttons/close_2.png);
  cursor: pointer;
  background-size: 25px;
  background-repeat: no-repeat;
}

/* -----------------------------------------
   1) Mobiltelefon Hochformat (Portrait)
   typischer Bereich: bis ~480px
------------------------------------------ */
@media (max-width: 480px) and (orientation: portrait) {
  #popup-content {
    max-width: 90%;
  }
  .mfp-close {
    background-image: url(/files/myFiles/gfx/page/buttons/close_2.png);
    width: 20px;
    height: 20px;
    background-size: 20px;
    line-height: 20px;
    right: -10px;
    top: -10px;
  }
}

/* -----------------------------------------
   2) Mobiltelefon Querformat (Landscape)
   typischer Bereich: bis ~767px
------------------------------------------ */
@media (max-width: 767px) and (orientation: landscape) {
  #popup-content {
    max-width: 70%;
  }
  .mfp-close {
    background-image: url(/files/myFiles/gfx/page/buttons/close_2.png);
    width: 20px;
    height: 20px;
    background-size: 20px;
    line-height: 20px;
    right: -10px;
    top: -10px;
  }
}

/* -----------------------------------------
   3) Tablet Hochformat (Portrait)
   typischer Bereich: 768px – 1085px
------------------------------------------ */
@media (min-width: 768px) and (max-width: 1079px) and (orientation: portrait) {
  #popup-content {
    max-width: max-content;
  }
  .mfp-close {
    background-image: url(/files/myFiles/gfx/page/buttons/close_2.png);
    width: 20px;
    height: 20px;
    background-size: 20px;
    line-height: 20px;
    right: -10px;
    top: -10px;
  }
}

/* -----------------------------------------
   4) Tablet Querformat (Landscape)
   typischer Bereich: 768px – 1023px
------------------------------------------ */
@media (min-width: 768px) and (max-width: 1079px) and (orientation: landscape) {
  #popup-content {
    max-width: 90%;
  }
  .mfp-close {
    background-image: url(/files/myFiles/gfx/page/buttons/close_2.png);
    width: 25px;
    height: 25px;
    background-size: 25px;
    line-height: 25px;
    right: -25px;
    top: -25px;
  }
}

/* -----------------------------------------
   5) Desktop (ab 1024px)
------------------------------------------ */
@media (min-width: 1080px) {
  #popup-content {
    max-width: max-content;
  }
  .mfp-close {
    background-image: url(/files/myFiles/gfx/page/buttons/close_2.png);
    width: 25px;
    height: 25px;
    background-size: 25px;
    line-height: 25px;
    right: -25px;
    top: -25px;
  }
}

/*
  ##############################################################
  # Klassen zum Aus- und Einblenden der jeweiligen Auflösungen #
  ##############################################################
*/

/* ----------------------------------------------------
   Grundzustand: Alles ausblenden
----------------------------------------------------- */
.show-mobile-portrait,
.show-mobile-landscape,
.show-tablet-portrait,
.show-tablet-landscape,
.show-desktop {
  display: none;
}

/* ----------------------------------------------------
   1) Mobiltelefon Hochformat (Portrait)
   max-width: 480px
----------------------------------------------------- */
@media (max-width: 480px) and (orientation: portrait) {
  .show-mobile-portrait {
    display: block;
  }
}

/* ----------------------------------------------------
   2) Mobiltelefon Querformat (Landscape)
   max-width: 767px
----------------------------------------------------- */
@media (max-width: 767px) and (orientation: landscape) {
  .show-mobile-landscape {
    display: block;
  }
}

/* ----------------------------------------------------
   3) Tablet Hochformat (Portrait)
   768px – 1023px
----------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .show-tablet-portrait {
    display: block;
  }
}

/* ----------------------------------------------------
   4) Tablet Querformat (Landscape)
   768px – 1023px
----------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
  .show-tablet-landscape {
    display: block;
  }
}

/* ----------------------------------------------------
   5) Desktop
   ab 1024px
----------------------------------------------------- */
@media (min-width: 1024px) {
  .show-desktop {
    display: block;
  }
}







/**
 * Fade-zoom animation for first dialog
 */

/* start state */
.my-mfp-zoom-in .zoom-anim-dialog {
  opacity: 0;

  -webkit-transition: all 0.9s ease-in-out;
  -moz-transition: all 0.9s ease-in-out;
  -o-transition: all 0.9s ease-in-out;
  transition: all 0.9s ease-in-out;

  -webkit-transform: scale(0.8);
  -moz-transform: scale(0.8);
  -ms-transform: scale(0.8);
  -o-transform: scale(0.8);
  transform: scale(0.8);
}

/* animate in */
.my-mfp-zoom-in.mfp-ready .zoom-anim-dialog {
  opacity: 1;

  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
}

/* animate out */
.my-mfp-zoom-in.mfp-removing .zoom-anim-dialog {
  -webkit-transform: scale(0.8);
  -moz-transform: scale(0.8);
  -ms-transform: scale(0.8);
  -o-transform: scale(0.8);
  transform: scale(0.8);

  opacity: 0;
}

/* Dark overlay, start state */
.my-mfp-zoom-in.mfp-bg {
  opacity: 0;
  -webkit-transition: opacity 0.3s ease-out;
  -moz-transition: opacity 0.3s ease-out;
  -o-transition: opacity 0.3s ease-out;
  transition: opacity 0.3s ease-out;
}
/* animate in */
.my-mfp-zoom-in.mfp-ready.mfp-bg {
  opacity: 0.8;
}
/* animate out */
.my-mfp-zoom-in.mfp-removing.mfp-bg {
  opacity: 0;
}

/**
 * Fade-move animation for second dialog
 */

/* at start */
.my-mfp-slide-bottom .zoom-anim-dialog {
  opacity: 0;
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;

  -webkit-transform: translateY(-20px) perspective(600px) rotateX(10deg);
  -moz-transform: translateY(-20px) perspective(600px) rotateX(10deg);
  -ms-transform: translateY(-20px) perspective(600px) rotateX(10deg);
  -o-transform: translateY(-20px) perspective(600px) rotateX(10deg);
  transform: translateY(-20px) perspective(600px) rotateX(10deg);
}

/* animate in */
.my-mfp-slide-bottom.mfp-ready .zoom-anim-dialog {
  opacity: 1;
  -webkit-transform: translateY(0) perspective(600px) rotateX(0);
  -moz-transform: translateY(0) perspective(600px) rotateX(0);
  -ms-transform: translateY(0) perspective(600px) rotateX(0);
  -o-transform: translateY(0) perspective(600px) rotateX(0);
  transform: translateY(0) perspective(600px) rotateX(0);
}

/* animate out */
.my-mfp-slide-bottom.mfp-removing .zoom-anim-dialog {
  opacity: 0;

  -webkit-transform: translateY(-10px) perspective(600px) rotateX(10deg);
  -moz-transform: translateY(-10px) perspective(600px) rotateX(10deg);
  -ms-transform: translateY(-10px) perspective(600px) rotateX(10deg);
  -o-transform: translateY(-10px) perspective(600px) rotateX(10deg);
  transform: translateY(-10px) perspective(600px) rotateX(10deg);
}

/* Dark overlay, start state */
.my-mfp-slide-bottom.mfp-bg {
  opacity: 0;

  -webkit-transition: opacity 0.3s ease-out;
  -moz-transition: opacity 0.3s ease-out;
  -o-transition: opacity 0.3s ease-out;
  transition: opacity 0.3s ease-out;
}
/* animate in */
.my-mfp-slide-bottom.mfp-ready.mfp-bg {
  opacity: 0.8;
}
/* animate out */
.my-mfp-slide-bottom.mfp-removing.mfp-bg {
  opacity: 0;
}
