/* =====================================================================
   STILE FÜR VERANSTALTUNGS-ÜBERSICHTSSEITE
   ===================================================================== */
.event-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

a.event-card-link {
    text-decoration: none;
    color: inherit;
}

.event-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.event-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.event-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.event-card-title {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
}

.event-card-summary {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.event-card-button {
    margin-top: auto;
    align-self: flex-start; /* Button bleibt linksbündig */
}

/* =====================================================================
   STILE FÜR VERANSTALTUNGS-DETAILSEITE (z.B. Brunnenfest)
   ===================================================================== */
.event-hero {
    height: 50vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.event-hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-hero h1 {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.event-content-wrapper {
    max-width: 1100px;
    margin: 2rem auto;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.event-main-content {
    flex: 2; /* Hauptinhalt nimmt 2/3 des Platzes */
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

.event-sidebar {
    flex: 1; /* Seitenleiste nimmt 1/3 des Platzes */
    position: sticky;
    top: 100px; /* Ca. Header-Höhe + etwas Abstand */
}

.info-box {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}

.info-box h3 {
    margin-top: 0;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-box li:last-child {
    border-bottom: none;
}

.event-gallery {
    margin-top: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Responsive Anpassung für Detailseite */
@media (max-width: 800px) {
    .event-content-wrapper {
        flex-direction: column;
    }
    .event-sidebar {
        position: static;
        width: 100%;
    }
}