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

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

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

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

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

.city-gallery-shops-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-shops-main-button:hover {
    background-color: #e67a14;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Description Text */
.city-gallery-shops-description {
    margin-bottom: 30px;
    text-align: center;
}

.city-gallery-shops-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layout */
.city-gallery-shops-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* List Layout */
.city-gallery-shops-list .city-gallery-shop-item {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: auto;
}

.city-gallery-shops-list .city-gallery-shop-image-container {
    flex: 0 0 250px;
    height: auto;
    min-height: 180px;
}

.city-gallery-shops-list .city-gallery-shop-content {
    flex: 1;
    padding: 20px;
    padding-bottom: 70px; /* Mehr Platz für den Button */
}

/* Shop Items Styling */
.city-gallery-shop-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-shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.city-gallery-shop-image-container {
    position: relative;
    overflow: hidden;
    height: 200px; /* Feste Höhe für quadratische Logos */
    display: flex;
    align-items: center;
    justify-content: center;
}

.city-gallery-shop-image {
    max-width: 100%;
    max-height: 160px; /* Angepasste maximale Höhe für bessere Logo-Darstellung */
    width: auto;
    height: auto;
    object-fit: contain; /* Zeigt das vollständige Logo ohne Verzerrung */
    padding: 15px; /* Padding für besseres Aussehen */
    transition: transform 0.5s ease;
    background-color: #fff;
    position: relative; /* Änderung von absolute zu relative */
    top: auto;
    left: auto;
}

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

.city-gallery-shop-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Nimmt verfügbaren Platz ein */
    position: relative;
    padding-bottom: 60px; /* Platz für den Button reservieren */
}

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

.city-gallery-shop-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-shop-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.city-gallery-shop-floor {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.city-gallery-shop-excerpt {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1; /* Nimmt verfügbaren Platz ein */
    /* Begrenze die Höhe auf 3 Zeilen Text */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.city-gallery-shop-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;
    position: absolute;
    bottom: 20px;
    left: 20px;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .city-gallery-shops-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .city-gallery-shops-header {
        margin-bottom: 20px;
    }

    .city-gallery-shops-heading {
        font-size: 28px;
    }

    .city-gallery-shops-description {
        margin-bottom: 25px;
    }

    .city-gallery-shops-description p {
        font-size: 15px;
    }

    /* Angepasste Container-Höhe für Tablets */
    .city-gallery-shop-image-container {
        height: 180px;
    }

    .city-gallery-shop-image {
        max-height: 140px;
    }
}

@media (max-width: 767px) {
    .city-gallery-shops-grid {
        grid-template-columns: 1fr;
    }

    .city-gallery-shops-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .city-gallery-shops-heading {
        margin-bottom: 15px;
        font-size: 24px;
    }

    .city-gallery-shops-description {
        margin-bottom: 20px;
    }

    .city-gallery-shops-description p {
        font-size: 14px;
        padding: 0 10px;
    }

    /* Angepasste Container-Höhe für Mobile */
    .city-gallery-shop-image-container {
        height: 160px;
    }

    .city-gallery-shop-image {
        max-height: 120px;
    }

    .city-gallery-shops-list .city-gallery-shop-item {
        flex-direction: column;
    }

    .city-gallery-shops-list .city-gallery-shop-image-container {
        flex: none;
        height: 160px; /* Auch für Listen-Layout */
    }
}

/* Zusätzliche Anpassungen für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .city-gallery-shop-image-container {
        height: 140px;
    }

    .city-gallery-shop-image {
        max-height: 100px;
        padding: 10px;
    }

    .city-gallery-shops-list .city-gallery-shop-image-container {
        height: 140px;
    }
}