/* Section Title */
.service_box_section_title h2 {
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 50px;
    color: #285262;
}

/* Variant from backend field: service-klasse = greenback */
.service_box_area.greenback {
    background: transparent;
}

.service_box_area.greenback .service_box_section_title h2,
.service_box_area.greenback .service_box_item h4,
.service_box_area.greenback .service_box_item p,
.service_box_area.greenback .donat_link {
    color: #fff;
}


.service_box_area.greenback .service_box_item {
    background: #81933C;
    border: none;
    padding:0;
}

.service_box_area.greenback .service_box_item h4,
.service_box_area.greenback .service_box_item p {
    text-align: left;
    padding: 0 20px;
}

.service_box_area.greenback .service_box_item h4 {
    text-transform: none;
    font-size: 20px;
}

.service_box_area.greenback .service_box_col {
    flex: 0 1 33.333%;
    max-width: 33.333%;
}

.service_box_area.services-2 .service_box_col {
    flex: 0 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
}

.service_box_area.services-3 .service_box_col {
    flex: 0 1 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
}

/* Variant: noborders - alles gleich, aber ohne Rahmen */
.service_box_area.noborders .service_box_item {
    border: none;
    padding:0;
}

.service_box_area.noborders .service_box_col {
    flex: 0 1 33.333%;
    max-width: 33.333%;
}

/* Main Row */
.service_box_row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: stretch;
}

/* Each Column */
.service_box_col {
    flex: 0 1 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
    display: flex;
    align-items: stretch;
}

/* Flexible layouts based on box count */
.service_box_area.services-2 .service_box_col {
    flex: 0 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
}

.service_box_area.services-3 .service_box_col {
    flex: 0 1 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
}

/* Service Card */
.service_box_item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    border: 1px solid #ccc;
    background: #fff;
    padding: 20px;
    flex: 1 1 auto;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Image */
.service_box_item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Title */
.service_box_item h4 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 0;
    padding-bottom: 10px;
    text-transform: uppercase;
    /*min-height: 60px;*/
}

.service_box_section_title h2,
.service_box_item h4 {
    color: #285262;
}


/* Description */
.service_box_item p {
    font-size: 16px;
    flex-grow: 1;
    margin-bottom: 20px;
    margin-top: auto;
}

/* Button */
.donat_link {
    background-color: #7d9c3d;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.donat_link:hover {
    background-color: #6c8a35;
}

/* Force override of inline height from Slick */
.slick-slide > div {
    height: auto !important;
}

/* Responsive */
@media (max-width: 991px) {
    .service_box_area .service_box_row .service_box_col {
        flex: 0 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .service_box_area .service_box_row .service_box_item {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .service_box_item img {
        height: auto !important;
    }
}
