* {
    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;
}

.navbar-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-image: url(images/start-hem.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    width: 100%;
    height: 80vh;
}

.bg-overlay {
    background-color: #0076ba;
    opacity: 0.5;
    width: 100%;
    height: max-content;
    height: 80vh;
}

.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;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 2rem;
    position: relative;
    margin-bottom: 4rem;
}

.card {
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    display: grid;
    grid-template-rows: 1fr 1fr;
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card:hover {
    transform: scale(1.035, 1.035);
    box-shadow: 0 15px 30px rgb(0 0 0 / 50%);
    background-color: rgba(0, 118, 186, 0.75);
}

.card:hover img {
    transform: translateY(-10px);
    background-color: rgba(0, 118, 186, 0.75);
}

.card-bg {
    position: absolute;
    top: 0;
    height: 110%;
    z-index: -1;
    width: 100%;
    object-fit: cover;
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-title {
    color: #e2e4e5;
    font-size: 24px;
    margin: 20px 0 5px 20px;
    z-index: 4;
    opacity: 0;
}

.card-description {
    color: #e2e4e5;
    font-weight: 400;
    font-size: 16px;
    align-self: end;
    line-height: 22px;
    margin: 0 0 20px 20px;
    letter-spacing: 0.5px;
    opacity: 0;
}

.card-img-overlay:hover {
    background-color: rgba(0, 118, 186, 0.75);
}

.card-img-overlay:hover .card-title,
.card-img-overlay:hover .card-description,
.card-img-overlay:hover .arrow {
    opacity: 1;
}

.card-img-overlay {
    position: absolute;
    top: inherit;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 1rem;
    height: 100%;
    margin: auto;
}

.arrow {
    position: absolute;
    top: 50%;
    width: 2vmin;
    height: 2vmin;
    background: transparent;
    border-top: .5vmin solid white;
    border-right: .5vmin solid white;
    box-shadow: 0 0 0 lightgray;
    transition: all 200ms ease;
    opacity: 0;
}

.arrow.right {
    right: 5%;
    transform: translate3d(0, -50%, 0) rotate(45deg);
}

.ref-divide {
    display: grid;
    grid-template-columns: repeat(2, minmax(min(300px, 100%), 1fr));
    grid-gap: 2rem;
    position: relative;
}

.ref-bildung ol,
.ref-labor ol {
    list-style: none;
    margin-bottom: 1.75rem 0;
}

ol li {
    background: white;
    border-radius: 0 0.5rem 0.5rem 0.5rem;
    counter-increment: gradient-counter;
    margin-top: .5rem;
    min-height: 2rem;
    padding: .5rem;
    position: relative;
}

ol li:hover {
    background: #0076ba;
    color: #e2e4e5;
}

ol .li-hover {
    display: none;
}

h3 {
    font-weight: 500;
}

.link-ref-popup {
    text-decoration: none;
    color: black;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 200ms;
    visibility: hidden;
    opacity: 0;
    z-index: 10;
}

.overlay.light {
    background: rgba(255, 255, 255, 0.5);
}

.cancel {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: default;
}

.cancel:target {
    visibility: visible;
    opacity: 1;
}

.popup {
    margin: 75px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #666;
    width: 300px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 100;
}

.popup.light {
    border-color: #aaa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.popup h2 {
    margin-top: 0;
    color: #666;
    font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
}

.popup .close {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 20px;
    right: 20px;
    opacity: 0.8;
    transition: all 200ms;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #666;
}

.close:hover {
    opacity: 1;
}

.popup .content {
    max-height: 400px;
    overflow: auto;
}

.popup p {
    margin: 0 0 1em;
}

.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;
}

li {
    padding: 0.7rem 0;
}

ul li.active a {
    color: #0076ba;
}

.links a {
    text-decoration: none;
    color: #676c6e;
    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: 1.5rem;
    margin-top: 2.5rem;
}

p {
    font-size: 1.25rem;
    line-height: 30px;
    font-weight: 300;
}

footer {
    margin-top: 1rem;
    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;
}

.is-drilldown li {
    display: block;
}

.drilldown .is-drilldown-submenu {
    position: absolute;
    left: 100%;
    z-index: -1;
    width: 100%;
    transition: transform 0.3s ease-out, z-index 0.3s ease-out;
}

.drilldown .is-drilldown-submenu-parent>a {
    position: relative;
}

.drilldown .is-drilldown-submenu-parent>a::after {
    position: absolute;
    top: 50%;
    margin-top: -6px;
    right: 1rem;
    display: block;
    width: 0;
    height: 0;
    content: '';
}

.drilldown .is-drilldown-submenu.is-active {
    z-index: 1;
    transform: translate(-100%);
    position: relative;
}

.drilldown .nested.is-drilldown-submenu {
    margin-right: 0;
    margin-left: 0;
}

.drilldown .drilldown-submenu-cover-previous {
    min-height: 100%;
}

.drilldown .js-drilldown-back>a::before {
    width: 0;
    height: 0;
    border: inset 6px;
    content: '';
    border-left-width: 0;
    border-right-style: solid;
    border-color: transparent #1779ba transparent transparent;
    border-left-width: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.75rem;
    border-left-width: 0;
}

@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;
        }
    }
    .arrow {
        width: 3vmin;
        height: 3vmin;
        border-top: 1vmin solid white;
        border-right: 1vmin solid white;
    }
    .ref-divide {
        grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    }
}