/* Container und Grid */
.hw-events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Filter Styles */
.hw-events-filters {
    margin-bottom: 30px;
}

.hw-filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.hw-filter-row.search-row {
    margin-bottom: 20px;
    height: 40px !important;
}

.hw-event-search {
    width: 100%;
    height: 40px !important;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 18px;
    box-sizing: border-box;
    line-height: 25px !important;
}

.hw-filter-column {
    flex: 1;
}

.hw-filter-column select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.hw-filter-reset {
    width: 100%;
    padding: 8px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hw-filter-reset:hover {
    background: #e0e0e0;
}

/* Event Grid - Standard: 1 Spalte für Mobile & Tablet */
.hw-events-grid {
    display: grid;
    gap: 2rem;
    position: relative;
    grid-template-columns: 1fr;
}

/* Event Cards - Standard Layout (Mobile & Tablet) */
.hw-event-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column !important;
    transition: transform 0.2s ease;
    min-height: 235px;
}

.hw-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hw-event-image {
    flex: 0 0 auto;
    height: 200px !important;
    width: 100% !important;
}

.hw-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hw-event-details {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    position: relative; /* Für absolute Positionierung des Links */
}

.hw-event-content {
    flex: 1;
    margin-bottom: 50px; /* Platz für den Link */
}

.hw-event-theme {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
    font-family: 'Alegreya-sc-lokal',Helvetica,Arial,Lucida,sans-serif;
    color: #F07D00;
    font-weight: 600!important;
}

.hw-event-title {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    color: #000000!important;
    font-family: 'Barlow-Condensed-light-local', Helvetica, Arial, Lucida, sans-serif!important;
    font-weight: 600!important;
}

.hw-event-date {
    color: #000000;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.hw-event-link {
    display: inline-block;
    padding: 8px 20px;
    background: #F07D00;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
    position: absolute; /* Absolute Positionierung */
    bottom: 15px; /* Abstand von unten */
    left: 15px; /* Abstand von links */
}

.hw-event-link:hover {
    background: #757373;
    color: #FECC00;
}

/* NUR Desktop Layout ab 1024px */
@media (min-width: 1024px) {
    .hw-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hw-event-card {
        flex-direction: row !important;
    }
    
    .hw-event-image {
        flex: 0 0 200px;
        height: auto !important;
        width: auto !important;
    }
}

/* Mobile & Tablet Anpassungen */
@media (max-width: 1023px) {
    .hw-filter-row {
        flex-direction: column;
    }
    
    .hw-filter-column {
        width: 100%;
    }
}

/* Pagination */
.hw-events-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.page-number {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none!important;
    cursor: pointer;
    background-color: #444444!important;
}

.page-number.active {
    background-color: #F07D00!important;
    color: #fff;
    border-color: #F07D00!important;
}

.page-dots {
    padding: 0px 12px;
    color: #666;
}

/* Loading State */
.hw-events-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

.hw-events-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2ea3f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* No Events Message */
.no-events {
    text-align: center;
    padding: 30px;
    color: #666;
    grid-column: 1 / -1;
}