* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

h1 {
    font-size: 5rem;
    color: #fff;
    position: absolute;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.container {
    max-height: 100vh;
    width: 100%;
    transform-style: preserve-3d;
    overflow: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    height: 5rem;
}

.menu {
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.logo {
    padding-top: 2em;
    padding-bottom: 1em;
    background-image: url(images/PB-Fritzinger-Logo-oUZ-weiss.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 100%;
}

.logo.active {
    height: max-content;
    background-image: url(images/PB-Fritzinger-Logo-mUZ.png);
    padding-bottom: 4em;
    transform: translate(10px, 10px);
}

.hamburger-menu {
    height: 4rem;
    width: 3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: rgba(0, 0, 0, 0);
}

.bar {
    width: 2.75rem;
    height: 3px;
    border-radius: 2px;
    background-color: #fff;
    transition: 0.5s;
    position: relative;
}

.bar::before,
.bar::after {
    content: "";
    position: absolute;
    width: inherit;
    height: inherit;
    background-color: #fff;
    transition: 0.5s;
}

.bar::before {
    transform: translateY(-9px);
}

.bar::after {
    transform: translateY(9px);
}

.main-container {
    overflow: hidden;
}

.main {
    position: relative;
    width: 100%;
    left: 0;
    z-index: 5;
    overflow: hidden;
    transform-origin: left;
    transform-style: preserve-3d;
    transition: 0.5s;
}

img {
    height: 100%;
    width: 100%;
    overflow: hidden;
    object-fit: cover;
}

.img.hem {
    filter: brightness(30%);
    object-position: 70% center;
}

.img.hhl {
    filter: brightness(35%);
    object-position: 14% center;
}

.split {
    position: absolute;
    width: 49.9%;
    height: 100%;
    overflow: hidden;
}

.split.left {
    left: 0;
    background-size: cover;
}

.split.right {
    right: 0;
    background-size: cover;
}

header {
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.712);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
}

.inner {
    max-width: 35rem;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
}

.title {
    font-size: 3rem;
}

.description {
    margin: 10px 0;
    text-align: center;
    width: 50%;
    font-size: 1.5rem;
}

.button {
    display: block;
    position: absolute;
    left: 50%;
    top: 85%;
    padding: 1rem;
    width: 25rem;
    text-align: center;
    color: #fff;
    border: #fff solid 0.01rem;
    font-size: 3rem;
    font-weight: 300;
    text-decoration: none;
    transform: translateX(-50%);
    box-sizing: content-box;
    background-color: rgba(0, 0, 0, 0.55);
}

.container.active .bar {
    transform: rotate(360deg);
    background-color: transparent;
}

.container.active .bar::before {
    transform: translateY(0) rotate(45deg);
    background-color: #0076ba;
}

.container.active .bar::after {
    transform: translateY(0) rotate(-45deg);
    background-color: #0076ba;
}

.container.active .main {
    animation: main-animation 0.5s ease;
    cursor: pointer;
    transform: perspective(1300px) rotateY(20deg) translateY(10px) translateZ(310px) scale(0.5);
}

@keyframes main-animation {
    from {
        transform: translate(0);
    }
    to {
        transform: perspective(1300px) rotateY(20deg) translateY(10px) translateZ(310px) scale(0.5);
    }
}

.links {
    position: absolute;
    width: 30%;
    right: 0;
    top: 0;
    height: 100vh;
    z-index: 2;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 10px;
}

ul {
    list-style: none;
}

ul li.active a {
    color: #0076ba;
}

.links a {
    text-decoration: none;
    color: #676c6e;
    padding: 0.7rem 0;
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    opacity: 0;
    transform: translateY(10px);
    animation: hide 0.5s forwards ease;
}

.links .footer a {
    font-size: 1rem;
    margin: 0 2rem 0 0;
}

.footer {
    margin-top: 25px;
}

.links a:hover {
    color: #0076ba;
}

.container.active .links a {
    animation: appear 0.5s forwards ease var(--i);
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes hide {
    from {
        opacity: 1;
        transform: translateY(0px);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.shadow {
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0px;
    transform-style: preserve-3d;
    transform-origin: left;
    transition: 0.5s;
    background-color: #fff;
}

.shadow.one {
    z-index: -1;
    background-color: #676c6e;
    opacity: 0.5;
}

.shadow.two {
    z-index: -2;
    background-color: #676c6e;
    opacity: 0.25;
}

.container.active .shadow.one {
    animation: shadow-one 0.6s ease-out;
    transform: perspective(1300px) rotateY(20deg) translateY(10px) translateZ(215px) scale(0.5);
}

@keyframes shadow-one {
    0% {
        transform: translate(0);
    }
    5% {
        transform: perspective(1300px) rotateY(20deg) translateY(10px) translateZ(310px) scale(0.5);
    }
    100% {
        transform: perspective(1300px) rotateY(20deg) translateY(10px) translateZ(215px) scale(0.5);
    }
}

.container.active .shadow.two {
    animation: shadow-two 0.6s ease-out;
    transform: perspective(1300px) rotateY(20deg) translateY(10px) translateZ(120px) scale(0.5);
}

@keyframes shadow-two {
    0% {
        transform: translate(0);
    }
    20% {
        transform: perspective(1300px) rotateY(20deg) translateY(10px) translateZ(310px) scale(0.5);
    }
    100% {
        transform: perspective(1300px) rotateY(20deg) translateY(10px) translateZ(120px) scale(0.5);
    }
}

.container.active .main:hover+.shadow.one {
    transform: perspective(1300px) rotateY(20deg) translateY(10px) translateZ(230px) scale(0.5);
}

.container.active .main:hover {
    transform: perspective(1300px) rotateY(20deg) translateY(10px) translateZ(340px) scale(0.5);
}

.main-container-mobile {
    opacity: 0;
    z-index: 3;
}

@media screen and (max-width: 1024px) {
    .button {
        width: 15rem;
        font-size: 2.5rem;
        font-weight: 200;
    }
}

@media screen and (max-width: 768px) {
    html {
        height: -webkit-fill-available;
    }
    body {
        min-height: -webkit-fill-available;
        min-height: 100vh;
    }
    .links {
        width: 100%;
        justify-content: center;
    }
    .main-container {
        opacity: 0;
    }
    .main-container-mobile {
        opacity: 1;
        background-color: #0076ba;
        position: absolute;
        overflow: hidden;
        width: 100%;
        top: 0;
        height: 100vh;
    }
    .main-container-mobile.active {
        opacity: 0;
        z-index: 2;
    }
    .split-top {
        position: absolute;
        width: 100%;
        height: 49.9%;
        overflow: hidden;
        top: 0;
        background-size: cover;
    }
    .split-bottom {
        position: absolute;
        width: 100%;
        height: 49.9%;
        overflow: hidden;
        bottom: 0;
        background-size: cover;
    }
    .mobile-button {
        top: 50%;
    }
    .links .footer a {
        margin: 0 1rem 0 0;
    }
    .logo {
        padding-top: 1em;
        padding-bottom: 1em;
    }
    .logo.active {
        padding-bottom: 3em;
        top: 0;
    }
}