/*  Original liegt in P:\Kunden\S\Sa Cova\P210620_SA_COVA_Webdesign\CSS für egocentric systems  */

#header .upcoming-events { 
   display: -webkit-box; 
   display: -ms-flexbox; 
   display: flex;
   -ms-flex-wrap: wrap;
   flex-wrap: wrap;
   margin: 3em auto;
   padding: 0.75em;
   width: 80%;
   z-index: 1;
   position: relative;
}

#header .upcoming-events:after {
   content: '';
   position: absolute;
   top: 0; 
   left: 0; 
   right: 0;
   bottom: 0;
   background-color: #921949;
   border-radius: 15px;
   opacity: 0.8;
   z-index: 0;
}

#header .event {
   width: 25%;
   padding: 0.75em;
   z-index: 1;
   text-align: center;
   line-height: 1.1;
   font-family: "Montserrat", Arial, sans-serif;
   font-weight: 600;
   transition: all 0.3s ease-in-out;
}

#header .event .eventwrapper {
   position: relative;
}

#header .event img:hover {
   box-shadow: rgba(0, 0, 0, 0.4) 0 0px 32px 0;
}

#header .event a {
   display: block;
}

#header .event .column-1 a {
   aspect-ratio: 1 / 1.5;
}

#header .event .column-1 img {
   height: 100%;
   width: 100%;
   object-fit: cover;
 }

#header .poster:hover {
-webkit-box-shadow: rgba(0, 0, 0, 0.1) 0 0px 32px 0;
box-shadow: rgba(0, 0, 0, 0.1) 0 0px 32px 0;
}

#header .event .column-2 {
   position: absolute;
   bottom: 0;
   background: rgba(255, 255, 255, 0.7);
   width: 100%;
   padding: 5px;
   text-align: center;
   min-height: 100px;
   display: flex;
   flex-direction: column;
   justify-content: center;
}

#header .event .event-name {
   font-size: 18px;
   font-weight: bold;
   color: #921949;
   margin-bottom: 5px;
   text-transform: uppercase;
   font-family: "Montserrat", Arial, sans-serif;
}

#header .event .event-date {
   font-size: 14px;
   font-family: "Montserrat", Arial, sans-serif;
}

@media screen and (max-width: 1024px) {
   #header .event .column-2 {
      min-height: 35%;
   }

}

@media screen and (max-width: 940px) {
   #header .event .column-2 {
      min-height: 60%;
   }

   #header .header h1 {
      font-size: 60px;
      line-height: 1;
   }

   #header .header p {
      font-size: 20px;
   }
}

@media screen and (max-width: 767px) {
   #header .header {
      text-align: center;
      height: auto;
   }

   #header .inside .upcoming-events {
      width: auto;
      max-width: 525px;
   }

   #header .event {
      width: 50%;
   }

   #header .event .column-2 {
      min-height: 35%;
   }
}

@media screen and (max-width: 600px) {
   #header .header h1 {
      font-size: 50px;
   }

   #header .header p {
      font-size: 16px;
   }
}

@media screen and (max-width: 525px) {
   #header .event .column-2 {
      min-height: 50%;
   }
}

@media screen and (max-width: 420px) {
   #header .inside .upcoming-events {
      width: 80%;
   }
   #header .event {
      width: 100%;
   }
   #header .event .column-1 a {
      aspect-ratio: unset;
   }
   #header .event .column-2 {
      min-height: auto;
   }
}