/* Fundstück des Monats - Enhanced Styling */

#fundstueck-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--clr-white);
    display: flex;
    flex-direction: column;
}

#fundstueck-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--clr-gold);
    color: var(--clr-navy);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
    z-index: 10;
}

#fundstueck-image-container {
    height: 350px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 4px solid var(--clr-navy);
    position: relative;
    overflow: hidden;
}

.fundstueck-content {
    padding: 2.5rem;
}

#fundstueck-title {
    color: var(--clr-navy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#fundstueck-description {
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.fundstueck-image-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.fundstueck-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.fundstueck-img.active {
    opacity: 1;
    z-index: 1;
}

/* Switcher UI */
.fundstueck-switcher {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.4rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fundstueck-switcher button {
    background: transparent;
    border: none;
    color: var(--clr-navy);
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.fundstueck-switcher button.active {
    background: var(--clr-gold);
    color: var(--clr-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fundstueck-switcher button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.3);
}

/* Zoom effect on container hover */
#fundstueck-container:hover .fundstueck-img.active {
    transform: scale(1.05);
}

/* Skeleton Styles */
.skeleton-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
