/* Hinweis-Popup (Startseite) */

.popup_overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(54, 54, 54, 0.75);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  text-align: center;
  opacity: 0;
  -webkit-transition: opacity 0.3s;
  -moz-transition: opacity 0.3s;
  -ms-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

/* Sichtbarkeit wird per JS ueber die Klasse gesteuert */
.popup_overlay.visible {
  opacity: 1;
}

/* vertikale Zentrierung ohne Flexbox, damit auch aeltere Browser mitmachen */
.popup_overlay:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.popup_box {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 20px 0px;
  padding: 45px 40px 40px;
  background: #fff;
  text-align: center;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.25);
  box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.25);
}

.popup_box h2 {
  font-size: 30px;
  margin-bottom: 15px;
}

/* die globale Klasse .center ueberschreibt margin per !important,
   deshalb hier ebenfalls mit !important nachziehen */
.popup_box hr.headline {
  margin: 5px auto 22px !important;
}

.popup_box .popup_subline {
  display: block;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: #363636;
  margin-bottom: 20px;
}

.popup_box p {
  margin: 0px 0px 20px 0px;
}

.popup_box p:last-of-type {
  margin-bottom: 30px;
}

.popup_box p.thanks {
  font-weight: 700;
}

.popup_box a.button {
  margin: 0px 5px 10px;
}

/* Schliessen-Kreuz oben rechts */
.popup_close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 30px;
  height: 30px;
  line-height: 28px;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: #363636;
}

.popup_close:hover, .popup_close:focus {
  color: #c92435;
}

/* verhindert das Scrollen der Seite hinter dem Popup */
body.popup_open {
  overflow: hidden;
}

/* Ist die Box hoeher als der Bildschirm, wird oben ausgerichtet,
   damit nichts abgeschnitten wird und das Overlay sauber scrollt */
@media screen and (max-width: 767px), screen and (max-height: 700px) {
  .popup_overlay:before {
    display: none;
  }
  .popup_box {
    vertical-align: top;
  }
}

/* mobile */
@media screen and (max-width: 767px) {
  .popup_overlay {
    padding: 10px;
  }
  .popup_box {
    padding: 40px 20px 30px;
  }
  .popup_box h2 {
    font-size: 24px;
  }
  .popup_box .popup_subline {
    font-size: 18px;
  }
  .popup_box a.button {
    display: block;
    margin: 0px 0px 10px 0px;
  }
}
