/* Event-spezifische Styles */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)) !important;
    gap: 20px;
    padding: 0;
    margin: 0;
    width: 100%;
}


.event-image {
    width: 100%;
    height: 650px; /* Fixed height for images */
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.events-wrapper {
    position: relative;
    min-height: 100vh;
}


.event-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%; /* Ensure equal height */
    margin: 0;
    padding: 0;
    overflow: hidden;
 
}

.event-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

/* Newsletter Section Styles */
.newsletter-section {
    background: linear-gradient(145deg, rgba(212,175,55,0.05) 0%, rgba(192,163,78,0.05) 100%);
}

.newsletter-form {
    max-width: 500px;
    margin: 2rem auto 0;
}

/* Event Filter Styles */
.event-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.event-badge {
    background: rgba(0, 0, 0, 0.7);
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--silver);
    cursor: pointer;
    transition: var(--transition-medium);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);
    color: var(--dark);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 4rem;
}

.page-link {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-link:hover {
    background: var(--gold);
    color: var(--dark);
}

/* Farb-Schema Anpassungen */
.events-section[data-farbe="gold"] .event-card {
    border-color: var(--gold);
}

.events-section[data-farbe="silber"] .event-card {
    border-color: var(--silver);
}

.events-section[data-farbe="dunkel"] .event-card {
    border-color: rgba(255,255,255,0.1);
}

/* Past Events Styling */
.event-card.past {
    position: relative;
}

.event-card.past .event-image img {
    filter: grayscale(100%);
    opacity: 0.8;
    transition: var(--transition-medium);
}

.event-card.past:hover .event-image img {
    filter: grayscale(70%);
    opacity: 0.9;
}

.event-card.past::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1),
        rgba(0,0,0,0.2)
    );
    pointer-events: none;
    z-index: 1;
}

.event-card.past .event-content {
    position: relative;
    z-index: 2;
}

/* Review Badge Styling */
.event-card.past .event-title::before {
    content: 'Review: ';
    color: var(--silver);
    font-weight: normal;
}

/* Past Event Badge Styling */
.event-card.past .badge {
    background: rgba(192, 192, 192, 0.7);
    color: var(--silver);
}


/* Event Hero Section Styles */
.event-hero {
    height: 60vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
}

.event-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
    z-index: 1;
}

.event-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    max-width: 800px;
}

.event-hero .hero-title {
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: linear-gradient(
        90deg,
        var(--gold) 0%,
        var(--gold-light) 25%,
        var(--gold) 50%,
        var(--gold-dark) 75%,
        var(--gold) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: goldGradient 8s linear infinite;
}

.event-hero .hero-subtitle {
    font-size: 1.2rem;
    color: var(--silver);
    letter-spacing: 0.1em;
    line-height: 1.6;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .event-hero .hero-title {
        font-size: 2rem;
    }
    
    .event-hero .hero-subtitle {
        font-size: 1rem;
    }
}

/* Farb-Schema spezifische Anpassungen */
.event-hero[data-farbe="gold"] .hero-title {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.event-hero[data-farbe="silber"] .hero-title {
    background: linear-gradient(90deg, var(--silver) 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.event-hero[data-farbe="dunkel"] .hero-title {
    background: linear-gradient(90deg, #333333 0%, #666666 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Responsive Adjustments for Events */
@media (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
    }

    .event-image {
        height: 500px;
    }
}

@media (max-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    }

    .event-image {
        height: 500px;
    }

    .event-content {
        padding: 1.5rem;
    }

    .single-event-hero {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 15px;
    }

    .event-image {
        height: 100%x;
    }

    .event-content {
        padding: 1rem;
    }

    .single-event-hero {
        height: 60vh;
    }

    .single-event-hero .hero-content {
        padding: 1rem;
    }

    .event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .event-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .event-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .events-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .event-image {
        height: 100%;
    }

    .event-content {
        padding: 0.75rem;
    }

    .single-event-hero {
        height: 60vh;
    }

    .single-event-content {
        padding: 0 0.5rem;
    }

    .event-hero .hero-title {
        font-size: 2rem;
    }

    .event-hero .hero-subtitle {
        font-size: 1rem;
    }
}

/* Additional Responsive Typography */
@media (max-width: 768px) {
    .event-title {
        font-size: 1.5rem;
    }

    .event-subtitle {
        font-size: 1.2rem;
    }

    .event-description {
        font-size: 0.9rem;
    }
}