/* ==========================================================================
   Category Showcase Grid (BEM)
   ========================================================================== */

/* Block: Grid Container */
.category-showcase {
    padding: 6rem 0;
}

.category-grid {
    display: grid;
    /* Auto-fit Grid: Passt sich automatisch der Bildschirmgröße an */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-grid__item {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Block: Category Card */
.category-card {
    background-color: #fff;
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(112, 112, 112, 0.1);
}

/* Hover-Effekt: Karte hebt sich leicht an */
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 85, 154, 0.15); 
}

/* Element: Media (Bild-Wrapper) */
.category-card__media-link {
    display: block;
    overflow: hidden;
}

.category-card__media {
    width: 100%;
    aspect-ratio: 4 / 5; /* Zwingt den Container exakt ins 4x5 Format */
    position: relative;
    overflow: hidden;
    background-color: #eaeaea; 
}

/* Element: Image */
.category-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Verhindert Verzerrungen */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover-Effekt: Bild zoomt leicht rein */
.category-card:hover .category-card__img {
    transform: scale(1.08);
}

/* Element: Body (Content-Bereich) */
.category-card__body {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Sorgt dafür, dass der Button immer ganz unten klebt */
}

/* Element: Title */
.category-card__title {
    color: #F46802;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 15px;
	text-align: left;
}

/* Element: Text */
.category-card__text {
    color: #404040;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; 
	text-align: left;
}

/* Element: Button */
.category-card__btn {
    background-color: #004883; 
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

/* Hover-Effekt Button */
.category-card__btn:hover {
    background-color: #F46802;
    color: #ffffff !important;
    text-decoration: none;
}

/* Responsive Anpassungen (Mobile) */
@media (max-width: 768px) {
    .category-grid {
        gap: 25px;
    }
    
    .category-card__body {
        padding: 20px;
    }
    
    .category-card__title {
        font-size: 22px;
    }
}