/* ============================================================
   DATEI: ba-grid-default.css
   FUNKTION: Grid Styles für Services & Related Cases
   VERSION: FINAL PRODUCTION
============================================================ */

/* ============================================================
   1. GRID WRAPPER
============================================================ */
.ba-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; 
    width: 100%;
    box-sizing: border-box;
}

/* ============================================================
   2. ITEM / CARD STYLING
============================================================ */
.ba-card {
    background-color: #f5f3f0;
    height: 100%; 
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    transition: transform 0.3s ease;
}

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

.ba-card-img-wrap {
    width: 100%;
    height: 250px; 
    overflow: hidden;
    display: block;
    position: relative;
}

.ba-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    transition: transform 0.5s ease;
}

.ba-card:hover .ba-card-img-wrap img {
    transform: scale(1.05); 
}

.ba-no-img {
    width: 100%;
    height: 100%;
    background-color: #e0ddd5;
}

/* ============================================================
   3. CONTENT BEREICH
============================================================ */
.ba-card-content {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
    text-align: left;
}

.ba-card-title {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
    color: #6d6d6d; 
    margin-top: 0;
    margin-bottom: 12px;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ba-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.ba-card-title a:hover {
    color: #bfaea2;
}

.ba-card-excerpt {
    font-size: 15px; 
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    flex-grow: 1; 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(15px * 1.6 * 3); 
}

/* ============================================================
   4. BUTTONS
============================================================ */
.ba-btn,
.ba-view-case {
    display: inline-block;
    background-color: #7c7268; 
    color: #ffffff;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    padding: 12px 18px;
    text-decoration: none;
    align-self: flex-start; 
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    line-height: 1;
    letter-spacing: 0.5px;
}

.ba-btn:hover,
.ba-view-case:hover {
    background-color: #bfaea2; 
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================================
   5. RESPONSIVE
============================================================ */

@media (max-width: 1200px) {
    .ba-card-title { font-size: 17px; }
}

@media (max-width: 980px) {
    .ba-service-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
    .ba-card-content { padding: 20px; }
    .ba-card-title { font-size: 17px; }
    .ba-card-excerpt { font-size: 14px; }
}

@media (max-width: 767px) {
    .ba-service-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .ba-card-title { font-size: 16px; margin-bottom: 10px; }
    .ba-card-excerpt { font-size: 14px; line-height: 1.5; }
    .ba-btn, .ba-view-case { font-size: 12px; padding: 10px 15px; }
}