/* Container */
.image-container {
    position: relative;
    perspective: 1000px; /* 3D-Effekt */
}

/* Inner container for flipping */
.inner-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

/* Front side (image with overlay) */
.front {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('images/wood.png');
    background-size: cover;
    background-position: center;
    backface-visibility: hidden;
}

/* White transparent overlay */
.front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}

/* Hover effect to remove transparency */
.image-container:hover .front::after {
    opacity: 0;
}

/* Back side (orange container) */
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    transform: rotateY(180deg);
}

/* Flip on click */
.image-container.flipped .inner-container {
    transform: rotateY(180deg);
}


.highlight-bg {
    background: #fbe6af;
}
