.iec-event-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.iec-event-card {
    background: rgb(28, 48, 42);
    border: 1px solid #444;
    border-radius: 0;
    padding: 20px;
    width: calc(33.333% - 20px);
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    color: rgb(245, 241, 233);
}

.iec-grid-2 .iec-event-card {
    width: calc(50% - 10px);
}

/* Suchfunktion Styles */
.iec-search-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-start;
}

.iec-search-input {
    background-color: #f5f1e9; /* Sandfarben */
    border: 1px solid #ccc;
    padding: 10px 15px;
    font-size: 16px;
    width: 250px;
    border-radius: 0;
    box-sizing: border-box;
    height: 44px;
    vertical-align: middle;
}

.iec-search-button {
    background-color: #78a08c; /* Neues Grün */
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
    border-radius: 0;
    transition: background-color 0.2s;
    box-sizing: border-box;
    height: 44px;
    vertical-align: middle;
}

.iec-search-button:hover {
    background-color: #668b79;
}

.iec-all-link {
    margin-top: 20px;
    text-align: right;
}

.iec-all-link a {
    color: rgb(28, 48, 42);
    text-decoration: underline;
    font-weight: bold;
}

.iec-event-card:hover {
    transform: translateY(-5px);
}

.iec-event-date {
    color: rgb(209, 229, 79);
    font-weight: bold;
    margin-bottom: 10px;
}

.iec-event-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: rgb(209, 229, 79);
}

.iec-event-location {
    color: rgb(245, 241, 233);
    opacity: 0.8;
    font-size: 0.9em;
}

.iec-event-description {
    color: rgb(245, 241, 233);
    margin-top: 10px;
}

/* Modal Styles */
.iec-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.iec-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    border-radius: 8px;
    position: relative;
}

.iec-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .iec-event-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .iec-event-card {
        width: 100%;
    }
}

/* Single Event Page Styles */
.iec-single-event {
    min-height: 400px;
}

.iec-single-event .container {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.iec-event-description {
    line-height: 1.6;
}
