.popup-overlay {
  position: fixed;
  inset: 0;
  padding: 20px;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

.popup-content {
  position: relative;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 750px;
  width: 90%;
  margin: 5vh auto;
  text-align: center;
}

.popup-header {
  color: var(--main-dark);
  font-family: "Source Sans 3", sans-serif;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.popup-text {
  line-height: 1.5;
  margin-bottom: 25px;
  color: #333;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.popup-close:hover,
.popup-close:focus {
  background-color: #f0f0f0;
  color: #333;
}

.popup-close:before {
  content: "\00d7";
  font-weight: bold;
}

figure {
  text-align: center;
  cursor: pointer;
}

.figure_right {
  float: right;
  margin-left: 30px;
}

.figure_left {
  float: left;
  margin-right: 30px;
}

@media (max-width: 1199.98px) {
  .brennerei-text {
    margin-bottom: 0 !important;
  }
  .figure_right {
    margin-left: 10px;
  }
}

@media (max-width: 767px) {
  .u_h_img {
    width: 100%;
  }
  .figure_right {
    float: left;
    margin-left: 0;
  }
  .figure_left {
    float: left;
    margin-right: 0;
  }
}

.main .memorial-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 2rem auto 2rem auto;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--main-dark);
  border-radius: 4px;
  background: #8f0e1b0f;
  color: #292521;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.12);
  transition: background 300ms ease;
}

.main .memorial-card:hover,
.main .memorial-card:focus {
  background: #f7f4ef;
}

.memorial-card-title {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.4rem;
  color: var(--main-dark);
}

.memorial-card-link {
  color: var(--main-dark);
  font-weight: bold;
}

.memorial-page {
  min-width: 0;
  width: 100%;
}

.memorial-message {
  line-height: 1.8;
}

.memorial-document-title {
  margin-bottom: 2rem;
  text-align: center;
  font-family: Merriweather, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.memorial-image {
  display: block;
  width: 100%;
  max-width: 940px;
  height: auto;
  margin: 2rem auto;
}

.zimmer {
  text-align: center;
}

.zimmer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 295px), 1fr));
  gap: 18px;
  margin: 20px auto 0;
}

.zimmer-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.zimmer-img img {
  transition: transform 300ms ease;
}

.zimmerbox:hover .zimmer-img img {
  transform: scale(1.05);
}

.zimmer-title {
  font-size: 24px !important;
}

.zimmer-untertitle {
  font-size: 21px !important;
  text-align: left !important;
}

.zimmerbox {
  background-color: #ffffff;
  padding: 20px;
  border-bottom: 3px var(--main-normal) solid;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  margin-top: 0;
  box-shadow: 0 0 12px rgb(0 0 0 / 15%);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.grats {
  color: #cddc39;
  background-image: -webkit-linear-gradient(
    45deg,
    #cddc39 0%,
    #e91e63 33%,
    #1e6ee7 67%
  );
  background-clip: text;
  -webkit-background-clip: text;
  animation: blinker 1s ease-in-out infinite;
  -webkit-text-fill-color: transparent;
}

@keyframes blinker {
  50% {
    scale: 0.9;
  }
}

.map {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.14);
}
