/**
 * Styling für die benutzerdefinierte Events-Liste
 */

.custom-events-list {
    margin-bottom: 30px;
}

.events-day-group {
    margin-bottom: 30px;
}

.events-day-heading {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    font-size: 1.4em;
    color: #333;
}

.event-item {
    --item-color: #ddd; /* Standard-Farbe im CSS definiert */
    margin-bottom: 20px;
    padding: 15px;
    border-left: 3px solid var(--item-color);
    transition: all 0.3s ease;
}

.event-item:hover {
    border-left-color: var(--item-color);
}
.event-item > :last-child {
    margin-bottom: 0;
}

/* Spezielle Styling für ausgefallene Events */
.event-item[data-cancelled="true"] {
    background-color: rgba(255, 82, 82, 0.05);
}

.event-item[data-cancelled="true"] .event-title {
    text-decoration: line-through;
    opacity: 0.8;
}

.event-header-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
    gap: 0.4rem;
}

.event-cancelled-label {
    display: inline-block;
    background: #ff5252;
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 0.5rem;
    font-size: 0.8em;
    line-height: 1.2;
}

.event-substitute-label {
    display: inline-block;
    background: gray;
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 0.5rem;
    font-size: 0.8em;
    line-height: 1.2;
}

.event-category {
    display: inline-block;
    background: var(--item-color);
    padding: 0.15rem 0.4rem;
    border-radius: 0.5rem;
    font-size: 0.8em;
    line-height: 1.2;
}

.event-item[data-category="uebungsabend"] {
    --item-color: #DCB6F7;
}

.event-item[data-category="motto-partys"] {
    --item-color: #D0FFC9;
}

.event-item[data-category="ferienspiele"] {
    --item-color: #C9FBFF;
}

.event-item[data-category="betriebsferien"] {
    background-color: #F6F6F6;
    border: unset;
    border-radius: 0.4rem;
    padding-top: 1.4rem;
}

.event-item[data-category="betriebsferien"] .event-category {
    color: white;
    background: #333;
}

.event-item[data-cancelled="true"] .event-category {
    color: white;
} 

.event-time {
    font-size: 0.8rem;
    line-height: 1.1;
}

.event-date-range {
    color: #666;
    font-weight: bold;
    background-color: #f5f5f5;
    padding: 2px 8px;
    border-radius: 3px;
}

.event-title {
    margin: 0.2rem 0 0.4rem;
    font-size: 1.1em;
}

.event-labels {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    gap: 0.2rem;
}

.event-label {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border: solid 1px #D9D9D9;
    border-radius: 0.5rem;
    font-size: 0.8em;
    line-height: 1.2;
    color: #6E6E6E;
}

.event-location {
}

.event-course-type {
}

.event-age-class {
}

.event-dance-level {
}

.event-price {
    margin: 0.8rem 0;
    font-size: 0.9rem;
}

.event-booking-cta {
    margin: 15px 0;
}

.event-booking-button {
    display: inline-block;
    font-size: 0.8rem;
    background: #ececec;
    color:#333;
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.event-booking-button:hover {
    background: #d3d3d3;
    text-decoration: none;
    color: black;
}

.event-teacher {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.event-substitute-teacher {
    margin-top: 15px;
    font-style: italic;
}

.event-substitute-teacher .teacher-names {

}

.teacher-profile-images {
    display: flex;
    margin-right: 10px;
}

.teacher-profile-image {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    margin-right: -5px;
    border: 1px solid white;
    display: flex;
    align-items: center;
}

.teacher-profile-image:last-child {
    margin-right: 0;
}

.teacher-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-names {
    font-style: italic;
    font-size: 0.8rem;
}

/* Kategorie-spezifisches Styling kann hier hinzugefügt werden */
/*
.event-item[data-category="ballett"] {
    // Spezielle Styles für Ballett-Kurse
}

.event-item[data-category="jazz"] {
    // Spezielle Styles für Jazz-Kurse
}
*/
