/* Modern Projects Section */
#work_section {
    padding: 75px 25px;
    padding-bottom: 100px;
    background-color: var(--secondary-color);
}

.home-about {
    width: 100%;
}

.padding-horizontal {
    padding-left: 2rem;
    padding-right: 2rem;
}

.padding-small {
    padding: 1rem;
}

.grid-large {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.padding-vertical {
    padding-left: 0;
    padding-right: 0;
}

.padding-xlarge {
    padding: 0 3rem;
}

.home-work-block {
    width: 100%;
}

.home-work-top {
    margin-bottom: 3rem;
}

.home-service-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.home-service-intro h2 {
    font-size: 3rem;
    margin: 0;
    color: var(--text-color);
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--main-brand-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.clip {
    position: relative;
    overflow: hidden;
    height: 20px;
}

.hover-text {
    transition: transform 0.3s ease;
}

.bottom-hover-text {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
}

.button:hover .hover-text {
    transform: translateY(-100%);
}

.button:hover .bottom-hover-text {
    transform: translateY(-100%);
}

.text-size-xsmall {
    font-size: 0.875rem;
}

.home-work-bottom {
    position: relative;
}

.home-work-list {
    width: 100%;
}

.home-work-cms {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.w-dyn-item {
    width: 100%;
}

.work-list-item-one {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
}


.work-list-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.work-list-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.work-list-title {
    grid-column: 1;
}

.heading-style-h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
}

.text-color-white {
    color: var(--text-color);
}

.work-list-grid .clip {
    grid-column: 2;
    height: auto;
    min-height: 20px;
}

.text-size-tiny {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.text-style-allcaps {
    text-transform: uppercase;
}

.list-image {
    grid-column: 3;
    width: 120px;
    height: 80px;
    margin-left: auto;
    position: relative;
    perspective: 1000px;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: visible;
    z-index: 10;
}

.list-image-item {
    width: 180px;
    height: 180px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
    transform-origin: center right;
}

.list-image-height {
    position: absolute;
    inset: 0%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backface-visibility: hidden;
}

.image-fill {
    position: absolute;
    inset: 0%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    object-fit: cover;
    border-radius: 12px;
    transform: translate3d(0px, 0px, 0px) scale3d(1.1, 1.1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.work-list-item:hover .list-image,
.work-list-item-one:hover .list-image {
    opacity: 1;
}

.work-list-item:hover .list-image-item,
.work-list-item-one:hover .list-image-item {
    transform: translateY(-50%) rotateY(15deg) rotateX(5deg) translateZ(20px);
}

.work-list-item:hover .image-fill,
.work-list-item-one:hover .image-fill {
    transform: translate3d(0px, 0px, 0px) scale3d(1.05, 1.05, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
}

.line {
    display: none;
}

.line-fill {
    display: none;
}

.line-wrap_topleft {
    display: none;
}

/* Responsive Design */

/* Large screens - bigger images */
@media (min-width: 1200px) {
    .list-image-item {
        width: 270px;
        height: 270px;
    }
}

@media (max-width: 768px) {
    .work-list-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }
    
    .work-list-grid .clip {
        grid-column: 1;
        order: 2;
        text-align: left;
    }
    
    .list-image {
        grid-column: 1;
        order: 3;
        margin: 0;
        width: 100%;
        height: auto;
        opacity: 1;
        perspective: none;
        transition: none;
    }
    
    .list-image .list-image-item {
        width: 100%;
        height: 0;
        padding-bottom: 100%;
        position: relative;
        transform: none;
        top: auto;
        right: auto;
        left: auto;
        margin: 0;
        transform-style: flat;
        transition: none;
    }
    
    .list-image-height {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        min-width: 100%;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        backface-visibility: visible;
    }
    
    .image-fill {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        min-width: 100%;
        object-fit: cover;
        border-radius: 12px;
        transform: none;
        transform-style: flat;
        transition: none;
    }
    
    /* Deaktiviere alle Hover-Effekte bei kleineren Bildschirmen */
    .work-list-item:hover .list-image,
    .work-list-item-one:hover .list-image {
        opacity: 1;
        transform: none;
    }

    .work-list-item:hover .list-image-item,
    .work-list-item-one:hover .list-image-item {
        transform: none;
    }

    .work-list-item:hover .image-fill,
    .work-list-item-one:hover .image-fill {
        transform: none;
    }
    
    .heading-style-h3 {
        font-size: 1.5rem;
    }
    
    .home-service-intro h2 {
        font-size: 2.5rem;
    }
    
    .padding-horizontal {
        padding-left: 25px;
        padding-right: 25px;
    }
}

@media (max-width: 500px) {
    #work_section {
        padding: 20vw 25px;
        padding-bottom: 20vw;
        padding-top: 20vw;
    }
    
    .padding-xlarge {
        padding: 1.5rem 0;
    }
    
    .work-list-item {
        padding: 1.5rem 0;
    }
    
    .list-image {
        width: 100%;
        height: auto;
        opacity: 1;
        perspective: none;
        transition: none;
    }
    
    .list-image .list-image-item {
        width: 100%;
        height: 0;
        padding-bottom: 100%;
        position: relative;
        transform: none;
        top: auto;
        right: auto;
        left: auto;
        margin: 0 auto;
        transform-style: flat;
        transition: none;
    }
    
    /* Deaktiviere alle Hover-Effekte auch bei sehr kleinen Bildschirmen */
    .work-list-item:hover .list-image,
    .work-list-item-one:hover .list-image {
        opacity: 1;
        transform: none;
    }

    .work-list-item:hover .list-image-item,
    .work-list-item-one:hover .list-image-item {
        transform: none;
    }

    .work-list-item:hover .image-fill,
    .work-list-item-one:hover .image-fill {
        transform: none;
    }
    
    .heading-style-h3 {
        font-size: 1.5rem;
    }
    
    .home-service-intro h2 {
        font-size: 2rem;
    }
}