/* Grid-Container für die Event-Cards */
.rmp-event-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* Desktop: 3 Spalten */
    gap: 24px;
}

/* Tablet: 2 Spalten */
@media (max-width: 1024px) {
    .rmp-event-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Smartphone: 1 Spalte */
@media (max-width: 640px) {
    .rmp-event-cards {
        grid-template-columns: 1fr;
    }
}

/* einzelne Card */
.rmp-event-card {
    background: rgba(255, 255, 255, 0.04); /* passt gut auf dunklem Hintergrund */
    border-radius: 8px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);

    display: flex;
    flex-direction: column;
    gap: 8px;

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            border-color 0.2s ease;
}

.rmp-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Titel */
.rmp-event-title {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

/* Meta-Zeile (Datum) */
.rmp-event-meta {
    margin: 0 0 12px;
    font-size: 0.9rem;
    opacity: 0.8;
    color: #ffffff;
}

/* Button in der Card */
.rmp-event-button {
    margin-top: auto;
    align-self: flex-start;

    padding: 8px 16px;
    border: 1px solid #ffffff;
    background: var(--awb-color5);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition:
            background-color 0.25s ease,
            color 0.25s ease,
            border-color 0.25s ease,
            box-shadow 0.25s ease,
            transform 0.2s ease;
}

.rmp-event-button:hover {
    background: var(--awb-color6);
    border-color: var(--awb-color6);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}


.rmp-event-content {
    font-size: 0.9rem;
    color: var(--awb-text-color);
    opacity: 0.85;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    max-height: 4.5em;
    line-height: 1.5em;
}