.wes-slider .wes-slide-content {
    min-height: 320px;
}

a.wes-slide-content,
a.wes-slide-content:hover {
    color: inherit;
    text-decoration: none;
}

.wes-slide-image {
    max-width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .wes-slide-image {
        margin-bottom: 0;
        margin-right: 1.5rem;
    }
}

.wes-slide-info h3 {
    margin-top: 0;
}

.wes-slide-meta li {
    margin-bottom: 0.25rem;
}

.wes-empty {
    padding: 2rem;
    text-align: center;
    color: #666;
}

.wes-grid-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    background: #fff;
    transition: box-shadow 0.15s ease-in-out;
}

a.wes-grid-card,
a.wes-grid-card:hover {
    color: inherit;
    text-decoration: none;
}

a.wes-grid-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.wes-grid-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0.375rem;
}

.wes-grid-district {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wes-grid-title {
    margin: 0.25rem 0 0.75rem;
    font-weight: 700;
}

.wes-grid-stats {
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 0.5rem;
}

.wes-grid-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wes-grid-stat-label {
    font-size: 0.7rem;
    color: #666;
}

.wes-grid-stat-value {
    font-size: 0.85rem;
    font-weight: 600;
}

.wes-slider-row {
    align-items: center;
    gap: 0.5rem;
}

.wes-slider-row > .carousel {
    flex: 1 1 auto;
    min-width: 0;
}

/* Desktop-/Mobile-Sichtbarkeit des Grid-Templates bewusst über eigene,
   garantiert wirksame Klassen statt Bootstraps d-none/d-md-flex-Utilities:
   deren Verfügbarkeit hängt von der genauen Bootstrap-4-Minor-Version der
   Zielseite ab, und ein Ausfall (beide Varianten gleichzeitig sichtbar)
   sieht aus wie ein komplett kaputtes Layout auf Mobile. */
.wes-grid-desktop {
    display: none !important;
}

.wes-grid-mobile {
    display: flex !important;
}

@media (min-width: 768px) {
    .wes-grid-desktop {
        display: flex !important;
    }

    .wes-grid-mobile {
        display: none !important;
    }
}

.wes-grid-desktop > .row,
.wes-grid-mobile > .row {
    width: 100%;
}

/* Pfeile stehen als eigene Spalte neben dem Carousel, nicht als
   Bootstrap-Standard-Overlay darüber (Karten wären sonst nur teilweise
   klickbar/hoverbar). Überschreibt daher Bootstraps position:absolute. */
.wes-slider-arrow.carousel-control-prev,
.wes-slider-arrow.carousel-control-next {
    position: static;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.06);
    border: 0;
    border-radius: 50%;
    opacity: 0.7;
    transition: background-color 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

.wes-slider-arrow.carousel-control-prev:hover,
.wes-slider-arrow.carousel-control-prev:focus,
.wes-slider-arrow.carousel-control-next:hover,
.wes-slider-arrow.carousel-control-next:focus {
    background-color: rgba(0, 0, 0, 0.12);
    outline: 0;
    box-shadow: none;
    opacity: 1;
}

.wes-slider-arrow .carousel-control-prev-icon,
.wes-slider-arrow .carousel-control-next-icon {
    width: 1.25rem;
    height: 1.25rem;
}
