* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body {
    display: flex;
    flex-direction: column;
    gap: 16vh;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    background: url('bg.jpg') no-repeat center;
    background-size: cover;
}

img {
    max-height: 100%;
    width: auto;
}

.logo {
    max-width: 90%;
    height: auto;
}

.logo-immobilien {
    max-height: 80%;
}

.container {
    display: block;
    position: relative;
    height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.container-top {
    
    background: transparent url('bg_top.png') no-repeat center;
}

.container-bottom {
    background: transparent url('bg_bottom.png') no-repeat center;
}

@media (min-width: 768px) {
    .container {        
        transition: transform 330ms ease-in-out;
    }

    .container-top {
        transform: translateX(-15%);
        background-position: center right;
        padding-right: 170px;
        justify-content: flex-end;
    }
    .container-bottom {
        transform: translateX(15%);
        background-position: center left;
        padding-left: 170px;
        justify-content: flex-start;
    }

    .container-top:hover {
        transform: translateX(-10%);
    }

    .container-bottom:hover {
        transform: translateX(10%);
    }
}

@media (min-width: 1200px) {
    .container-top {
        transform: translateX(-35%);
    }
    .container-bottom {
        transform: translateX(35%);
    }

    .container-top:hover {
        transform: translateX(-30%);
    }

    .container-bottom:hover {
        transform: translateX(30%);
    }
}
