
.veranstaltungsmodul-box {
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  max-width: 350px;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #fff8f3;
}

.veranstaltungsmodul-buttons{
  margin-top: auto;
  margin-bottom: auto;
  width:100%;
}

.veranstaltungsmodul-kopfzeile {
  background-color: #5c2d91;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 8px;
      font-size: 0.97em;
    white-space: nowrap;
    hyphens: none;
}

.veranstaltungsmodul-bild img {
  width: 100%;
  display: block;
  height: auto;
      mask-image: radial-gradient(ellipse 170% 62% at 50% 130%, transparent 60%, black 62%);
    mask-composite: subtract;
    -webkit-mask-image: radial-gradient(ellipse 170% 62% at 50% 130%, transparent 60%, black 62%);
    -webkit-mask-composite: destination-out;
}

.veranstaltungsmodul-inhalt {
    padding: 12px;
    padding-top: 0;
    flex: 1;
    text-align: center;
    margin-top: -4%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.veranstaltungsmodul-titel {
  color: #1d4a6d;
  margin-top: 1.8rem;
    margin-bottom: 0;
    font-size: 1.3em;
    line-height: 1.5rem;
}

.veranstaltungsmodul-beschreibung {
      margin-bottom: 7px;
    color: #333;
    font-size: 0.95em;
    padding: 1.5rem;
    padding-top: 0;
    line-height: 1.5rem;
  
}

.veranstaltungsmodul-button {
  background-color: #447899;
  color: white;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  transition: background 0.3s ease;
  margin-top: auto;
  width: 60%;
  align-items: center;
  margin-bottom: 1rem;
}

.veranstaltungsmodul-button:hover {
  background-color: #335e77;
}


/* --- Lightweight modal overlay --- */
.vm-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.vm-overlay.is-open{ display:flex; }
.vm-dialog{
  width: 100%;
  max-width: 980px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
}
.vm-header{
  padding: 12px 16px;
  font-weight: 800;
  font-size: 1.1rem;
  background: #f7fbff;
  border-bottom: 1px solid #d7e7f7;
  text-align: center;
}
.vm-body{
  width: 100%;
  overflow: hidden;
}
.vm-body iframe{
  border: 0;
  width: 100%;
  display: block;
}
.vm-close{
  position: absolute;
  right: 10px; top: 8px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 480px){
  .vm-dialog{ border-radius: 10px; }
}
