/*body.mmPopupActive {
  overflow: auto;
}*/
#mmPopupFade {
  display: none;
}

#mmPopup {
  display: none;
  position: fixed;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background-color: #fff;
  overflow-y: auto;
  overflow-x: hidden;
}

#mmPopup.active {
  display: block;
}

#mmPopup .closeButton {
  position: absolute;
  top: 9px;
  right: 20px;
  color: #fff;
  font-size: 3em;
  opacity: 1;
  cursor: pointer;
  transition: all .15s ease;
}

#mmPopup .closeButton:hover {
  opacity: .7;
}

#mmPopup article {
  margin: 0;
  padding: 0;
  width: 100%;
  border: 0;
  height: auto;
}

#mmPopup h1 {
  background-color: #2880D7;
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 15px 5px;
  font-size: 2em;
}

#mmPopup h2 {
  background-image: url(https://www.erlangen.de/portaldata/1/Resources/Header_bilder/Umwelt_S.jpg);
  background-repeat: none;
  background-size: cover;
  color: #fff;
  padding: 50px 20px;
  margin: 0;
  position: relative;
  font-size: 1.5em;
}

#mmPopup h2:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.25);
}

#mmPopup h2 span {
  position: relative;
  z-index: 2;
  line-height: 1.5em;
}

#appContainerMM {
  box-sizing: border-box;
}

#appContainerMM .contactform {
  display: block !important;
}

#appContainerMM .flexgrid {
  display: block;
  box-sizing: border-box;
  margin: 0 20px;
}

#appContainerMM .mandatory {
  color: red;
}

#appContainerMM .w50 {
  width: 100%;
  box-sizing: border-box;
}

#appContainerMM .w100 {
  width: calc(100% - 40px);
  flex: none;
  margin: 0 20px;
}

#appContainerMM .w100.error p {
  padding: 10px;
  border: 2px solid #D44E70;
  color: #D44E70;
}

#appContainerMM .w100 p.small {
  font-size: .75em;
}

#appContainerMM textarea {
  width: 100%;
  height: 200px;
  box-sizing: border-box;
  margin-bottom: 20px;
}

#appContainerMM input.error, #appContainerMM textarea.error {
  border: 2px solid #D44E70;
}

#appContainerMM input.success, #appContainerMM textarea.success {
  border: 2px solid #569429;
}

#appContainerMM input[type="text"] {
  width: 100%;
  height: 31px;
  box-sizing: border-box;
  margin-bottom: 20px;
}

#appContainerMM input[type="text"]:last-child {
  margin-bottom: 0;
}

#appContainerMM input[type="text"][type="submit"] {
  margin-bottom: 0;
}

#appContainerMM .thema {
  margin: 25px 0 10px 0;
  display: block;
}

#appContainerMM .info {
  margin-top: 35px;
  margin-bottom: 35px;
}

#appContainerMM .right {
  text-align: right;
}

#appContainerMM input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  float: left;
  border: 0;
  background: transparent;
  position: absolute;
  z-index: -9999;
}

#appContainerMM input[type="radio"] + label {
  position: relative;
  display: block;
  margin-bottom: 10px;
}

#appContainerMM input[type="radio"].error + label:before {
  border: 2px solid #D44E70 !important;
}

#appContainerMM input[type="radio"].error + label:after {
  top: 10px !important;
  left: 4px !important;
}

#appContainerMM input[type="radio"].success + label:before {
  border: 2px solid #569429 !important;
}

#appContainerMM input[type="radio"].success + label:after {
  top: 10px !important;
  left: 4px !important;
}

#appContainerMM input[type="radio"]:checked, #appContainerMM input[type="radio"]:not(:checked) {
  visibility: hidden;
  background: transparent;
  margin: 0;
  padding: 0;
}

#appContainerMM input[type="radio"]:checked + label:before, #appContainerMM input[type="radio"]:not(:checked) + label:before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  position: relative;
  top: 6px;
  border: 1px solid #8A8A8A;
  background: white;
  margin-right: 1em;
  border-radius: 50%;
  box-shadow: inset 2px 2px 7px 0px #CACACA;
}

#appContainerMM input[type="radio"]:checked + label:after, #appContainerMM input[type="radio"]:not(:checked) + label:after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  position: absolute;
  background-color: #8A8A8A;
  border-radius: 50%;
  top: 9px;
  left: 3px;
  z-index: 2;
  opacity: 0;
  transition: all .15s ease;
}

#appContainerMM input[type="radio"]:checked + label:after {
  opacity: 1;
  background-color: #2880D7;
}

#appContainerMM input[type="radio"]:not(:checked):hover + label:after {
  opacity: .5;
}

#appContainerMM input[type="radio"] + label {
  cursor: pointer;
}

#appContainerMM input[type="file"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  opacity: 0;
  visibility: hidden;
  width: 0;
  height: 0;
  z-index: -1;
  position: absolute;
  overflow: hidden;
  box-sizing: border-box;
}

#appContainerMM input[type="file"] + label {
  margin-top: 25px;
  height: 40px;
  line-height: 22px;
  box-sizing: border-box;
  display: block;
  color: #fff;
  padding: 8px 10px;
  background-color: #2880D7;
  border: 2px solid transparent;
  text-align: center;
  transition: all .15s ease;
  width: calc(100% - 40px);
}

#appContainerMM input[type="file"] + label.error {
  border: 2px solid #D44E70;
}

#appContainerMM input[type="file"] + label.success {
  border: 2px solid #569429;
}

#appContainerMM input[type="file"] + label i {
  margin-right: 7px;
}

#appContainerMM input[type="file"]:hover + label {
  color: #fff;
  background-color: #5399df;
}

#appContainerMM .button {
  font-size: 1em;
  cursor: pointer;
  background-color: #2880D7;
  display: inline-block;
  color: #fff;
  padding: 10px 15px;
  transition: all .15s ease;
  margin-bottom: 30px;
}

#appContainerMM .button:hover {
  background-color: #5399df;
}

@media only screen and (max-width: 760px) {
  body.mmPopupActive, html.mmPopupActive {
    overflow: hidden !important;
  }
}

@media only screen and (min-width: 760px) {
  #mmPopup {
    width: 60%;
    left: 20%;
    top: 50px;
    height: 100vh;
    position: absolute;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  }
  #mmPopupFade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99998;
  }
  #mmPopupFade.active {
    display: block;
  }
  #appContainerMM .flexgrid {
    display: flex;
  }
  #appContainerMM .w50 {
    width: 50%;
  }
  #appContainerMM .w50:nth-child(odd) {
    padding-right: 10px;
  }
  #appContainerMM .w50:nth-child(even) {
    padding-left: 10px;
  }
  #appContainerMM textarea {
    height: calc(100% - 18px);
    margin-bottom: 0;
  }
}

#appContainerMM, #mmPopup .box, #mmPopup .stoermelder {
  height: 100%;
}

#mmPopup iframe {
  width: 100%;
  height: calc(100% - 230px);
}

#mmPopup .tabs {
  position: absolute;
  bottom: 5px;
  width: calc(100% - 40px);
}

#mmPopup .tabs a.tab-link {
  display: inline-block;
  padding: 5px 10px;
  font-size: 19px;
  background-color: #E5E5E2;
  color: #666666;
  transition: all ease-in-out 0.25s;
  cursor: pointer;
  margin-top: 5px;
}

#mmPopup .tabs a.tab-link:hover, #mmPopup .tabs a.tab-link.active {
  background-color: #2880D7;
  color: #fefefe;
}

#mmPopup .successView {
  margin-left: 22px;
  margin-right: 22px;
}

@media screen and (max-width: 1300px) {
  #mmPopup h2 {
    padding-bottom: 100px;
  }
}
