/* RP Projekte Widget */

.rp-projekte-wrapper {
    width: 100%;
}

/* === FILTER === */
.rp-projekte-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}

.rp-projekte-filter button {
    padding: 8px 24px;
    border: 1px solid currentColor;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 30px;
}

.rp-projekte-filter button:hover {
    opacity: 0.8;
}

/* === GRID === */
.rp-projekte-grid {
    display: grid;
    grid-template-columns: repeat(var(--rp-cols, 2), 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .rp-projekte-grid {
        grid-template-columns: repeat(var(--rp-cols-tablet, 2), 1fr);
    }
}

@media (max-width: 767px) {
    .rp-projekte-grid {
        grid-template-columns: repeat(var(--rp-cols-mobile, 1), 1fr);
    }
}

/* === CARD === */
.rp-projekte-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rp-projekte-card.hidden {
    display: none;
}

/* === RUNDES BILD === */
.rp-projekte-card__image-link {
    display: block;
    width: 100%;
}

.rp-projekte-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.rp-projekte-card__image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease;
}

.rp-projekte-card__image-link:hover .rp-projekte-card__image img {
    transform: scale(1.04);
}

.rp-projekte-card__no-image {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}

/* === TEXT === */
.rp-projekte-card__text {
    padding-top: 16px;
    text-align: center;
    width: 100%;
}

.rp-projekte-card__text a {
    text-decoration: none;
    color: inherit;
}

.rp-projekte-card__title {
    margin: 0 0 4px 0;
    font-weight: 600;
}

.rp-projekte-card__location {
    margin: 0;
    font-size: 0.9em;
}
