/* -------------------- FRONTEND -------------------- */
.crp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 5px;
}

/* Card Container */
.crp-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #555;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Für ein sanftes Schatten-Design */
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}

/* Bild */
.crp-item img {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover; /* Bild wird skaliert, um den Container ohne Verzerrung auszufüllen */
    transition: transform 0.4s ease;
    image-rendering: crisp-edges; /* Schärfere Darstellung der Bilder */
}

/* Hover-Zoom und Schatten-Effekt */
.crp-item:hover img {
    transform: scale(1.05); /* Bild wird beim Hover vergrößert */
}

.crp-item:hover {
    /* transform: translateY(-5px); */ /* entferne diese Zeile */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* optional Schatten beibehalten */
}

/* Title und Umrandung am unteren Rand */
.crp-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 15px;
    font-size: 1.3rem;
    font-weight: 700;
    background-color: #176093;
    color: #fff;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    box-sizing: border-box;
    border-top: 2px solid #555; /* Umrandung oben des Titels */
    text-overflow: ellipsis; /* Falls der Titel zu lang ist, wird er abgeschnitten */
    white-space: nowrap;
    overflow: hidden;
}

/* Hover: Balken heller */
.crp-item:hover .crp-title {
    background-color: #f2f3f5;
    color: #176093; /* Schriftfarbe für Kontrast */
}

/* Mobile */
@media (max-width: 768px) {
    .crp-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten Mobile */
        gap: 15px;
    }

    .crp-item img {
        height: 180px; /* Fixierte Höhe der Bilder auf Mobile */
    }

    .crp-title {
        font-size: 1.3rem;
        padding: 10px 12px;
    }
}
