.city-gallery-services-widget {
    width: 100%;
    max-width: 100%;
}

.city-gallery-services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.city-gallery-services-heading {
    font-size: 32px;
    margin: 0;
    line-height: 1.2;
}

.city-gallery-services-heading-blue {
    color: #333333;
    font-weight: 700;
}

.city-gallery-services-heading-orange {
    color: #F78C25;
    font-weight: 700;
}

.city-gallery-services-main-button {
    display: inline-block;
    background-color: #F78C25;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.city-gallery-services-main-button:hover {
    background-color: #e67a14;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Grid Layout */
.city-gallery-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch; /* Gleiche Höhe für alle Elemente */
}

/* List Layout */
.city-gallery-services-list .city-gallery-service-item {
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.city-gallery-services-list .city-gallery-service-image-container {
    flex: 0 0 250px;
}

.city-gallery-services-list .city-gallery-service-content {
    flex: 1;
    padding: 20px;
}

/* Service Items Styling */
.city-gallery-service-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.city-gallery-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.city-gallery-service-image-container {
    position: relative;
    overflow: hidden;
    padding-top: 60%; /* 5:3 aspect ratio, kann durch Widget-Einstellung überschrieben werden */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5; /* Standard-Hintergrundfarbe, wird durch Widget-Einstellung überschrieben */
}

.city-gallery-service-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    max-width: 80%; /* Standard-Größe, kann durch Widget-Einstellung überschrieben werden */
    max-height: 80%; /* Standard-Größe, kann durch Widget-Einstellung überschrieben werden */
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

/* Spezielle Styling für SVG-Bilder */
.city-gallery-service-image[src$=".svg"] {
    padding: 0;
    object-fit: contain;
}

/* Ein bisschen mehr Abstand für weiße SVG-Icons auf farbigem Hintergrund */
.city-gallery-service-image-container.has-colored-bg .city-gallery-service-image[src$=".svg"] {
    max-width: 70%;
    max-height: 70%;
}

.city-gallery-service-item:hover .city-gallery-service-image {
    transform: scale(1.05);
}

.city-gallery-service-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start;
}

.city-gallery-service-category {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

.city-gallery-service-title {
    margin: 0 0 10px;
    font-size: 20px;
    color: #333333;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    min-height: 2.6em; /* Platz für etwa 2 Zeilen */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Maximal 2 Zeilen anzeigen */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.city-gallery-service-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.city-gallery-service-title a:hover {
    color: #F78C25;
}

.city-gallery-service-date {
    margin-bottom: 10px;
    color: #888;
    font-size: 13px;
}

.city-gallery-service-excerpt {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Beschränkt die Anzeige auf 3 Zeilen */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.city-gallery-service-button {
    display: inline-block;
    background-color: #F78C25;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto; /* Button nach unten schieben */
}

.city-gallery-service-button:hover {
    background-color: #e67a14;
    transform: translateY(-2px);
}

.city-gallery-no-services {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .city-gallery-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .city-gallery-services-header {
        margin-bottom: 20px;
    }
    
    .city-gallery-services-heading {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .city-gallery-services-grid {
        grid-template-columns: 1fr;
    }
    
    .city-gallery-services-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .city-gallery-services-heading {
        margin-bottom: 15px;
        font-size: 24px;
    }
    
    .city-gallery-services-list .city-gallery-service-item {
        flex-direction: column;
    }
    
    .city-gallery-services-list .city-gallery-service-image-container {
        flex: none;
        padding-top: 60%;
    }
} 