img.popup-wrapper {

    opacity: 0;

    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999999;
    animation: popupwrapper 100ms ease-in-out .5s forwards;

}

@keyframes popupwrapper {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.popup-wrapper p {
    font-size: 1em;
    line-height: 1.6em;
    margin-bottom: 20px;
}

.popup-wrapper p strong {
    font-weight: 700;
}

.close {

    display: none;

}

.popup-bg-closer {

    opacity: 0;

    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999999;
    animation: popupbgcloser 500ms 800ms ease-in-out forwards;

}

@keyframes popupbgcloser {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.popup-container {

    opacity: 0;
    margin-top: 10px;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 90vw;
    max-width: 700px;
    height: 90vh;
    background: transparent;
    z-index: 999999999;
    animation: popupcontainer 500ms 1000ms ease-in-out forwards;

}

@keyframes popupcontainer {
    0% {
        opacity: 0;
        margin-top: 10px;
    }

    100% {
        opacity: 1;
        margin-top: 0px;
    }
}

.popup-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
}

.popup-content a {
    text-decoration: underline;
}

.popup-closer {

    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
    padding-bottom: 20px;
}

.popup-x {

    display: block;
    width: 20px;
    height: 20px;
    background: url("../img/kreuz.svg");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;

}

.popup-img-wrapper {

    width: 100%;
    height: auto;
    flex-grow: 1;
    overflow: hidden;
    text-align: center;
}

.popup-img-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.popup-img-wrapper a img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.popup-img {

    display: block;
    width: 100%;
    height: 100%;
    background: url("../img/weihnachtsbaum.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;

}

.popup-img.karneval-img {

    background: url("../img/karneval.jpg");
    background-position: bottom;
    background-size: cover;
    background-repeat: no-repeat;

}

.popup-img.oster-img {

    background: url("../img/popupbild-ostern.jpg");
    background-position: bottom;
    background-size: cover;
    background-repeat: no-repeat;

}

.popup-img.herbst-img {

    background: url("../img/popup-herbst.jpg");
    background-position: bottom;
    background-size: cover;
    background-repeat: no-repeat;

}

.textzeiten {
    display: flex;
    flex-direction: row;
}

.textbreite {
    width: 230px;
}

.bold-type {
    font-weight: 700;
}

@media only screen and (max-width: 1160px) {

  .textbreite {
      width: 150px;
  }

}

@media only screen and (max-width: 1035px) {

    .textbreite {
        width: 230px;
      }

    /* .popup-img-wrapper {

        display: none;

    } */

    .popup-content {

        width: 100%;

    }

}

@media only screen and (max-width: 640px) {

    .popup-content {

        max-height: 90vh;
        overflow: scroll;
        padding: 30px;

    }

    .textbreite {
        width: 100%;
    }

    .textzeiten {
        flex-direction: column;
    }

}
