/******************************

    Events Card List
    Hier Befinden sich alle CSS-Klassen die für Auflistung der Veranstaltungen wie es auf der Startseite
    der Fall ist. Die Events werden in weißen "Karten" nebeneinander angezeigt.
    Das Template befindet sich in part/events-card-list.php

 ******************************/

.kompz-grid {
    padding: 0;
}

.kompz-grid h3, .kompz-grid h2, h3.kompz-grid, h2.kompz-grid {
    margin-bottom: 1em;
}

.ftk-events-list {
    gap: 2em;
    display: flex;
    flex-direction: column;
}


.ftk-event-image, .ftk-event-content {
    flex-basis: 0;
}

.ftk-event-image img {
    object-fit: contain;
    /*Maximale Breite damit kein Overflow entsteht*/
    max-width: 100%;
	height: 100%;
}

.ftk-event-image {
    flex-grow: 1;
    min-width: 12em;
}

.ftk-event-title {
    color: #cd0a1e !important;
    margin-bottom: 0.1em;
}

.ftk-event-category {
    text-transform: uppercase;
}

.ftk-event-content {
    flex-grow: 2;
    padding: 1em;
    min-width: 15em;
}

.ftk-event-item {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    color: black !important;
    transition-duration: 0.25s;
    transition-property: all;
    gap: 2em;
    flex-wrap: wrap;
	flex-direction: row-reverse;
	margin-left: -1em;
}

.ftk-event-item:hover {
    transform: translateY(-0.5em);
    box-shadow: 0 10px 10px 0 lightgray;
}

.events-list {
    display: flex;
}

.events-item {
    display: flex;
    justify-content: space-between;
    flex-direction: column;

    height: 390px;
    background-color: #FFFFFF;
    padding: 16px;
}

.events-item-headline {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.42px;
    line-height: 27px;
    hyphens: auto;
    max-height: 108px;
	min-height: 108px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.events-item-date {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 23px;
}

.events-item-text {
    font-size: 16px;
    line-height: 23px;
    color: #6A6E77;
	min-height: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 200px;
}

.events-item-details {
    color:#cd0a1e;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1.2px;
    line-height: 22px;
}

.events-view-button {
    margin-left: auto;
    margin-right: auto;
    margin-top: 80px;
}

.details-icon {
    vertical-align: bottom;
    font-size: 22px;
    margin: 0;
}

    .details-full {
        display: none;
    }

    .details-icon {
        display: inline;
    }

    .details-half {
        display: inline;
    }
/*
.details-half {
    display: none;
}*/

@media (max-width: 1440px) {
    h2.events-headline {
        margin-top: 32px;
        margin-bottom: 64px;
        font-size: 64px;
        font-weight: 200;
        letter-spacing: 0.8px;
        line-height: 66px;
    }

    .event-col {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .event-col.key-3 {
        display: none;
    }

    .events-item-headline {
        font-size: 20px;
        font-weight: 800;
		min-height: 0;
        letter-spacing: 0.5px;
        line-height: 22px;
		min-height: 66px;
    }

    .events-item-date {
        font-size: 16px;
        letter-spacing: 0.5px;
        line-height: 23px;
		min-height: 46px;
    }

    .events-item-text {
        font-size: 16px;
        line-height: 23px;
    }

    .events-item {
        height: 370px;
    }

    .details-full {
        display: none;
    }

    .details-icon {
        display: inline;
    }

    .details-half {
        display: inline;
    }
}

.events-list-mobile {
    display: none;
}

@media (max-width: 768px) {
    .details-icon {
        font-size: 22px;
        display: inline;
        margin: 0;
    }
    .events-list {
        display: none;
    }

    .events-list-mobile {
        display: block;
    }

    #events-list-mobile .hover-card {
        height: 280px;
    }
    #events-list-mobile {
        min-height: 380px;
    }
    #events-list-mobile .carousel-inner {
        min-height: 280px;
        box-shadow: 0 30px 30px 0 rgba(0,0,0,0.1);
    }

    #events-list-mobile .carousel-indicators{
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 200px;
    }
    #events-list-mobile .carousel-indicators li{
        background-color: #D9DADD;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin-left: 12px;
    }
    #events-list-mobile .carousel-indicators li.active{
        width: 16px;
        height: 16px;
        background-color: #4EBDCD;
    }
}

@media (max-width: 1440px) {
    h2.events-headline {
        margin-top: 64px;
        margin-bottom: 64px;

    }
    .events-item{
        padding: 16px 8px;
    }

    .events-view-button {
        margin: 64px auto;
    }
}


@media (max-width: 568px) {
    h2.events-headline {
        font-size: 40px;
        font-weight: 200;
        letter-spacing: 0.5px;
        line-height: 42px;
        margin-top: 48px;
        margin-bottom: 32px;
    }

	.h80{
		font-size: 10vw !important;
	}

    .events-view-button{
        display: table;
        height: auto;
        width: auto;
        margin: 4px auto 0px;
    }

    .events-item {
        padding: 16px;
    }
}

.loader {
  margin:auto;
  border: 16px solid #F2F2F2; /* Light grau */
  border-top: 16px solid #B50900; /* rot */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
