/* Design overlay styling */
.design-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.design-overlay.show {
    opacity: 1;
    visibility: visible;
}

.design-overlay-content {
    width: 90%;
    max-width: 1200px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.design-overlay.show .design-overlay-content {
    transform: scale(1);
}

.close-overlay {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-overlay:hover {
    background-color: rgba(220, 53, 69, 0.8);
    transform: rotate(90deg);
}

.overlay-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.overlay-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 5s ease;
}

.overlay-image:hover img {
    transform: scale(1.1);
}

.overlay-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    position: relative;
}

.overlay-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
}

.overlay-info h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -8px;
    left: 0;
}

.overlay-info p {
    margin-bottom: 25px;
    line-height: 1.7;
    color: var(--secondary-color);
}

.overlay-features {
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature i {
    margin-right: 15px;
    font-size: 18px;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-btn {
    margin-top: 15px;
}

/* Responsive adjustments for overlay */
@media screen and (max-width: 768px) {
    .overlay-info {
        padding: 25px;
    }
    
    .overlay-info h2 {
        font-size: 22px;
    }
}

/* Tooltip for design cards */
.design-card::before {
    content: 'Klicken für Details';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.design-card:hover::before {
    bottom: 10px;
    opacity: 1;
}
