.modal-patenschaft {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;                 /* horizontale Mitte */
    top: 0;
    width: 100%;
    height: 100%;
    overflow: scroll;
    transform: translateX(-50%); /* verschiebt das Modal selbst in die Mitte */
    background: rgba(0,0,0,0.2); /* leicht abdunkeln */
    backdrop-filter: blur(2px);  /* Hintergrund weichzeichnen */
    -webkit-backdrop-filter: blur(2px); /* für Safari */
    opacity: 0;
    transition: opacity 0.6s ease;
}

.modal-patenschaft-content {
    background-color: white;
    margin: 2.5% auto 0;
    border-width: 10px;
    width: 550px;
    max-width: 90vw;       /* schrumpft automatisch auf kleinen Displays */
    text-align: center;
    padding: 30px 20px;
    border-radius: 5px;
    box-shadow: 3px 10px 30px #c82d24;
    /* animate content */
    transform: scale(0.9);
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}

.modal-patenschaft-content img {
    width: 65%;
    padding-bottom: 30px;
    margin: auto;
}

.modal-patenschaft-content h2 {
  color: #c82d24;
  font-weight: bold;
}

.close {
  float: right;
  font-size: 42px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #c82d24;
}

.modal-patenschaft.show {
    opacity: 1;
}

.modal-patenschaft.show .modal-patenschaft-content {
    transform: scale(1);
    opacity: 1;
}



