/* ============================================
   UA DESTINATION TEASERS - GRID & BOX STYLES
   Version: 2.0.0
   ============================================ */

/* ============================================
   GRID CONTAINER
   ============================================ */

.ua-destination-teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 10px;
    justify-content: center;
    align-items: stretch;
}

/* ============================================
   BOX STYLES (für Grid UND Slider)
   ============================================ */

.ua-destination-teaser.ua-img-overlay {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #2f4449;
    color: #ffffff;
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform .15s ease, box-shadow .15s ease;
}

.ua-destination-teaser.ua-img-overlay:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Bildbereich */
.ua-img-wrapper {
    position: relative;
    height: 290px;
    overflow: hidden;
    z-index: 0;
    flex-shrink: 0;
}

.ua-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}

/* Verlauf über Bild */
.ua-img-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 0, 0, 0.60) 0%,
        rgba(0, 0, 0, 0.05) 55%,
        rgba(0, 0, 0, 0.00) 100%
    );
    z-index: 1;
}

/* Overlay für Tags + Titel */
.ua-img-overlay-content {
    position: absolute;
    inset: 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
}

/* Container für Tags oben */
.ua-destination-tags-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

/* Riser Tag - oben links */
.ua-destination-tag {
    padding: 4px 14px;
    background: #fabe0c;
    color: #2f4449;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    white-space: nowrap;
}

/* Preis-Tag - oben rechts */
.ua-destination-price-tag {
    padding: 6px 16px;
    background: #FFC107;
    color: #2f4449;
    font-size: 14px;
    font-weight: 800;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.02em;
}

/* Titel - unten links */
.ua-destination-title {
    margin: 0;
    padding: 0;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* CTA-Balken mit Schraffur */
.ua-content {
    padding: 16px 16px;
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.03) 0 8px,
            transparent 8px 16px
        ),
        #2f4449;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.ua-destination-cta {
    font-size: 13px;
    font-weight: 700;
    color: #fabe0c;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* ============================================
   GRID RESPONSIVE
   Versteckt Boxen NUR im Grid-Container!
   ============================================ */

@media (max-width: 1024px) {
    .ua-destination-teaser-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* 897-1256px: Max 6 Boxen im Grid */
@media (max-width: 1256px) and (min-width: 897px) {
    .ua-destination-teaser-grid > .ua-destination-teaser:nth-child(n+7) {
        display: none;
    }
}

/* Unter 897px: Max 4 Boxen im Grid */
@media (max-width: 896px) {
    .ua-destination-teaser-grid > .ua-destination-teaser:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .ua-destination-teaser-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        justify-content: center;
    }
    
    .ua-destination-tags-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .ua-destination-price-tag {
        font-size: 13px;
        padding: 5px 14px;
    }
}

@media (max-width: 480px) {
    .ua-destination-teaser-grid {
        grid-template-columns: 1fr;
    }

    .ua-img-wrapper {
        height: 240px;
    }

    .ua-destination-title {
        font-size: 18px;
    }
    
    .ua-destination-tag {
        font-size: 10px;
        padding: 3px 12px;
    }
    
    .ua-destination-price-tag {
        font-size: 12px;
        padding: 4px 12px;
    }
}
