/*index*/
.noMOrP{
    margin: 0px;
    padding: 0px;
}
.pT13{
    padding-top: 13px;
}
.pTop10{
    padding-top: 10px;
}

.eventsAndNewsDiv{
    display: flex;
    justify-content: center;
    width: 100%;
}
.upcommingEventsImage{
    padding: 10px;
}
.EANCard{
    max-width: 500px;
    border-radius: 20px;
    border: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
   
    margin: 20px;
    flex: 1;  
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    
    }
.EANInfoLine{
    padding: 10px;
}
.EANIcons{
    color: #4890D8;
    font-size: 1.5em;
    padding-right: 10px;
}


.EANCard h2{
    width: fit-content;
   
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    font-size: 3em;
    color: var(--text-color);
}
.latestNeswEAN{
    display: flex;
    justify-content: center;
    max-height: 200px;
}
.EANNewsImages{
    max-height: 150px;
}
.pTagEANSubHeadline{
    margin-top: 7px;
    font-weight: bolder;
    padding-bottom: 10px;
    text-align: center;
}


/*product*/
.pCardHead{
    padding: 5px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border: 3px solid var(--accent-color);
    text-align: center;
    font-size: 1em;
    padding-left: 1px;
    padding-right: 1px;
   
}
.productsDiv{
    display: flex;
    flex-direction: column;
   
}
.productsDiv h2{   
    
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
    width: fit-content;
}
.products{
   
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    grid-template-rows: 1fr; /* 1 row */
    gap: 30px; /* Adjust spacing */
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 40px;
    margin-left:auto;
    margin-right:auto;
}


.productsHeadLine{
    font-size: 3em;
    display: flex;
    flex-direction: row;
}
.productCardContent{
    border: 3px solid var(--background-color);
    flex-grow: 1;
    border-top: none;
    border-radius:0px 0px 15px 15px ;
    display: flex;
    flex-direction: column;
    
}

.productCard{
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 19px;
    background-color: rgba(72,144,216,0.07);
    max-width: 400px;
    align-items: stretch;
    flex: 1;
}

.protductImg2{
    transform: rotate(-8.5deg);
}

.lowerCardContent{
    margin-top: auto;
    margin-bottom: 10px;
}

.pCardHead:hover + .productCardContent {
    border-color: var(--accent-color);
}
.productCardContent:hover{
    border-color: var(--accent-color);
}

/*popUp*/
.popUpX{
    margin-left: 50px;
    color: red;
    font-weight: 900;
    margin-top: -80px;
}
.popUpDiv{
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: fixed;
    width: 100vw;
    background-color: var(--background-color);
    z-index: 9;
}
button .popUpX{
    border: none;
    background-color: var(--background-color);
}
/*popUp*/
@media screen and (max-width: 1380px){
    .products{
        grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
        grid-template-rows: repeat(2, 1fr);
    }
    .productCard{
        min-width: 350px;
    }
}
@media screen and (max-width:1100px){
    .eventsAndNewsDiv{
        flex-direction: column;
        align-items: center;
    }
}
@media screen and (max-width: 850px){
    .productsHeadLine{
        font-size: 2em;
    }
    .products{
        grid-template-rows: repeat(4, 1fr); /* Creates 4 equal rows */
  grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 750px){
    .productCardsLayout{
        grid-template-columns: 1fr;
        align-items: stretch; /* Ensure children have the same height */
    }
}
@media screen and (max-width:580px) {
    .lowerContent{
        padding: 20px;
    }
    .productsHeadLine{
        font-size: 1.2em;
    }
}
@media screen and (max-width: 410px) {
    .productCard{
        min-width: 200px;
        width: 100%;
    }
}
@media screen and (max-width: 380px) {
    .EANNewsImages{
        max-height: 100px;
    }
    .EANCard{
        font-size: 0.8em;
    }
    .productsHeadLine{
        font-size: 1em;
    }
}