* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: #e2e4e5;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    height: 5rem;
}

header.active .navbar.scrolled {
    border-bottom: none;
}

.navbar.scrolled {
    background-color: #e2e4e5;
    border-bottom: 1px solid black;
}

.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-oUZ.png);
}

.logo.scrolled {
    height: max-content;
    background-image: url(images/PB-Fritzinger-Logo-oUZ.png);
}

.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.scrolled {
    background-color: #0076ba;
}

.bar.scrolled::before,
.bar.scrolled::after {
    background-color: #0076ba;
}

.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);
}

.bar.active {
    transform: rotate(360deg);
    background-color: transparent;
}

.bar.active::before {
    transform: translateY(0) rotate(45deg);
    background-color: #0076ba;
}

.bar.active::after {
    transform: translateY(0) rotate(-45deg);
    background-color: #0076ba;
}

.bg-div {
    position: relative;
    text-align: center;
}

.bg-image {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
}

.bg-image2 {
    background-image: url(images/law-bg.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    width: 100%;
    height: 600px;
}

.bg-overlay {
    background-color: #0076ba;
    opacity: 0.5;
    width: 100%;
    height: max-content;
    height: 600px;
}

.bg-txt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bg-txt h1 {
    font-size: 44px;
    line-height: 52px;
    font-weight: 400;
    margin-bottom: 5px;
    color: #e2e4e5;
    letter-spacing: 0.1em;
}

.main-container {
    width: 80%;
    margin: auto;
    padding-top: 1em;
}

.reference {
    text-decoration: none;
    color: #0076ba;
    font-weight: 400;
}

.weare-div {
    font: normal 40px/50px Rubik, sans-serif;
    height: 50px;
    margin: 1em auto 1em auto;
    justify-content: center;
    align-items: center;
    width: fit-content;
}

.weare {
    height: 50px;
    float: left;
    margin-right: 0.3em;
    font: normal 40px/50px Rubik, sans-serif;
    height: 50px;
}

b {
    float: left;
    overflow: hidden;
    position: relative;
    height: 50px;
}

span {
    display: inline-block;
    color: #e74c3c;
    position: relative;
    white-space: nowrap;
    top: 0;
    left: 0;
    animation: move 10s;
    animation-iteration-count: infinite;
    animation-delay: 2s;
}

@keyframes move {
    0% {
        top: 0px;
    }
    20% {
        top: -50px;
    }
    40% {
        top: -100px;
    }
    60% {
        top: -150px;
    }
    80% {
        top: -200px;
    }
}

.weare-links {
    text-decoration: none;
    color: #0076ba;
}

.container-card-deck {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.card-deck {
    display: flex;
    flex-direction: column;
    flex-flow: row wrap;
    margin-right: -20px;
    margin-left: -20px;
}

.card {
    position: relative;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
    border: 1px solid rgba(26, 54, 126, 0.125);
}

.card-deck .card {
    flex: 1 0 35%;
    margin: 20px;
}

.card-img {
    vertical-align: middle;
    border-style: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-img-overlay {
    position: absolute;
    top: inherit;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 1rem;
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-overlay:hover {
    background-color: rgba(0, 118, 186, 0.75);
}

.card-title {
    font-family: Rubik, serif;
    font-size: 28px;
    color: #e2e4e5;
    text-shadow: 6px 1px 15px #666;
    opacity: 0;
    font-weight: 400;
}

.card-img-overlay:hover .card-title {
    opacity: 1;
}

.links {
    position: fixed;
    width: 100%;
    right: 0;
    top: 0;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    display: flex;
    justify-content: center;
    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;
}

a.current-site {
    color: #0076ba;
}

.container.active .links a {
    animation: appear 0.5s forwards ease var(--i);
    opacity: 1;
}

.container.active .links {
    background-color: #e2e4e5;
    opacity: 1;
    z-index: 2;
}

body.active {
    height: 100%;
    overflow: hidden;
}

h2 {
    font-size: 2rem;
    line-height: 52px;
    font-weight: 500;
    margin-bottom: 5px;
    margin-top: 10px;
}

p {
    font-size: 1.25rem;
    line-height: 30px;
    font-weight: 300;
}

footer {
    background: #676c6e;
    padding-top: 25px;
    padding-bottom: 25px;
    color: #e2e4e5;
}

.footer-container {
    width: 100%;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    margin: 0 auto;
}

.footer-adress {
    position: relative;
    width: 100%;
    flex: 0 0 50%;
    max-width: 50%;
}

.footer-social {
    position: relative;
    width: 100%;
    flex: 0 0 50%;
    max-width: 50%;
    margin-top: auto;
}

.footer-social-link {
    list-style: none;
    text-decoration: none;
    color: #e2e4e5;
}

@media screen and (max-width: 1024px) {
    .weare-div {
        font: normal 30px/40px Rubik, sans-serif;
        height: 40px;
        margin: 0.5em auto 2em auto;
    }
    .weare {
        height: 40px;
        margin-right: 0.2em;
    }
    b {
        height: 40px;
    }
    @keyframes move {
        0% {
            top: 0px;
        }
        20% {
            top: -40px;
        }
        40% {
            top: -80px;
        }
        60% {
            top: -120px;
        }
        80% {
            top: -160px;
        }
    }
}