body, html {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: "Lato", Sans-serif;
}
body {
    background-image: url('Elementa_Uitikon_Eigentum_Visu-02_fade-web2.jpg');
    background-size: cover;
    background-position: center center;
}
 .background-image {
         position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: translateY(-50%);
    width: 350px;
    height: auto;
    object-fit: contain;
    z-index: 0;
        }
dotlottie-wc {
    position: fixed; /* Bleibt fest im Hintergrund */
    top: 0;
    left: 0;
    width: 100vw; /* Volle Bildschirmbreite */
    height: 100vh; /* Volle Bildschirmhöhe */
    z-index: -1; /* Legt die Animation HINTER allen anderen Inhalten */
}
.container {
    display: flex;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Deaktiviert Maus-Events während der Intro */
    animation: allowInteraction 0s forwards 2s; /* Aktiviert Maus-Events nach 6s */
}

.split {
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: width 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.split::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.5s ease-in-out;
}

.left {
    background-image: url('bild1.jpg');
    background-size: cover;
    background-position: center center;
    transform: translateX(-100%);
    animation: slideInFromLeft 1s ease-out 2s forwards;
    z-index: 1;
}

.right {
    background-image: url('bild2.jpg');
    background-size: cover;
    background-position: center center;
    transform: translateX(100%);
    animation: slideInFromRight 1s ease-out 2s forwards;
    z-index: 1;
}

.container:hover .split:hover {
    width: 70%;
}

.container:hover .split:not(:hover) {
    width: 30%;
}

.container:hover .split:hover::after {
    background-color: rgba(0, 0, 0, 0);
}

.content-left {
    background:#7d685080;
    padding: 25px 50px 25px 50px;
    color: white;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInContent 1s ease-in-out 2.5s forwards;
    opacity: 0;
}

.content-right {
    background:#a1a4b080;
    padding: 25px 50px 25px 50px;
    color: white;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInContent 1s ease-in-out 2.5s forwards;
    opacity: 0;
}



.logo-left {
    width: 230px;
    margin-bottom: 0px;
    transition: filter 0.3s ease;
}
.logo-right {
    width: 230px;
    margin-bottom: 0px;
    transition: filter 0.3s ease;
}
.container:hover .left:hover .logo-left {
    fill: #fff;
}
.container:hover .right:hover .logo-right {
    fill: #fff;
}

.text {
    font-size: 2em;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.cta {
    margin-top: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background-color: transparent;
    color: white;
    border-style: solid;
    border-width: 1px;
    border-color: white;
    border-radius: 0px;
    padding: 16px 65px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out 0.2s, background-color 0.3s ease, color 0.3s ease;
}

.container:hover .split:hover .cta {
    opacity: 1;
}

.container:hover .split:hover .cta:hover {
    background-color: white;
    color: black;
    cursor: pointer;
}

.text_projekt {
    font-size: 16px;
    margin-top: 10px;
    text-align: center;
    width: 330px;
    height: 100px;
    text-align: center;

}

/* Animationen */
@keyframes slideInFromLeft {
    to { transform: translateX(0); }
}

@keyframes slideInFromRight {
    to { transform: translateX(0); }
}

@keyframes fadeInContent {
    to { opacity: 1; }
}

@keyframes allowInteraction {
    to { pointer-events: auto; }
}

/* Mobile Ansicht */
@media (max-width: 1200px) {
    body {
        background-image: url('Elementa_Uitikon_Eigentum_Visu-02_fade-web2.jpg');
        background-size: cover;
        background-position: center center;
    }
    .logo-left {
    width: 200px;
}
.logo-right {
    width: 200px;
}
    .container {
        flex-direction: column;
    }
    .split {
        width: 100%;
        height: 50%;
    }
    .container:hover .split:hover,
    .container:hover .split:not(:hover) {
        width: 100%;
    }
    .left {
        transform: translateY(-100%);
        animation: slideInFromTop 1s ease-out 2s forwards;
    }
    .right {
        transform: translateY(100%);
        animation: slideInFromBottom 1s ease-out 2s forwards;
    }
    @keyframes slideInFromTop {
        to { transform: translateY(0); }
    }
    @keyframes slideInFromBottom {
        to { transform: translateY(0); }
    }
    .cta {
        margin-top: 20px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        background-color: transparent;
        color: white;
        border-style: solid;
        border-width: 1px;
        border-color: white;
        border-radius: 0px;
        padding: 16px 65px;
        opacity: 1;
    }
    .text_projekt {
    font-size: 12px;
    margin-top: 0px;
    text-align: center;
    width: 330px;
    text-align: center;
}
}
@media (max-width: 450px) {
body {
background-image: url('Uitikon_Ext01_Final_04_web_mobile-intro_web.jpg');
background-size: cover;
background-position: center center;
 }
  .background-image {
         position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: translateY(-50%);
    width: 300px;
    height: auto;
    object-fit: contain;
    z-index: 0;
        }

    /* HIER EINFÜGEN */
    .content-left,
    .content-right {
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      justify-content: center;
    }
        .text_projekt {
    font-size: 12px;
    margin-top: 0px;
    text-align: center;
    width: 330px;
    text-align: center;

}
    .logo-left {
    width: 160px;
}
.logo-right {
    width: 160px;
}

    .cta {
        font-size: 14px;
        padding: 16px 55px;
    }

}
