html {
    height: 100%;
}

body {
    height: 100%;
    font-family: sans-serif;
    margin: 0;
    /* DARK THEME */
    /* background-color: #0b1f38;
    color: #f4f4f4; */

    background-color: #f7f7f7;
    color: #212121;
}

h2 {
    font-size: 2em;
}

h2,
h3 {
    font-weight: 300;
    margin-top: 48px;
    margin-bottom: 32px;
    text-align: center;
}

p,
li {
    font-size: 1em;
    line-height: 1.4;
}

hr {
    border: 0;
    border-width: 1px;
    border-top-style: solid;
    border-color: #767676;
    height: 1px;
    /* background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); */
    margin-left: 10%;
    margin-right: 10%;
}

#header {
    position: absolute;
    user-select: none;
    height: 110px;
    width: 100%;
    padding-left: 5%;
    padding-right: 5%;
    box-sizing: border-box;
    z-index: 99;
    transition: all 0.3s ease-out;
}

#main {
    margin-top: 110px;
    max-width: 1350px;
    margin-left: auto;
    margin-right: auto;
    left: 0px;
    right: 0px;
    padding-top: 16px;
    padding-left: 5%;
    padding-right: 5%;
    border-top-style: solid;
    border-top-color: rgba(0, 0, 0, 0.5);
    border-top-width: 1px;
    padding-bottom: 64px;
}

.header-opaque {
    position: fixed !important;
    top: 0;
    background: rgba(0, 0, 0, 0.5) !important;
    border-bottom-style: none !important;
    backdrop-filter: blur(10px);
    height: 65px !important;
}

.header-opaque #header-logo {
    opacity: 0;
    margin-top: -20px;
}

.header-opaque #header-logo-compact {
    opacity: 1;
    top: 20px;
}

#header-logo {
    margin-left: 16px;
    margin-top: 5px;
    margin-bottom: 5px;
    opacity: 1;
    transition: all 0.3s linear;
}

#header-logo-compact {
    position: absolute;
    left: calc(16px + 5%);
    top: 40px;
    opacity: 0;
    transition: all 0.3s linear;
}



#menu {
    float: right;
    height: 100%;
    padding: 0;
    margin: 0;
    text-align: right;
    display: flex;
    align-items: center;
    justify-items: end;
}

#menu li {
    line-height: calc(110px - 10px - 7px);
    height: 110px;
    color: #404040;
    display: inline-block;
    font-weight: bold;
    list-style-type: none;
    padding: 10px 22px 7px 22px;
    margin-left: 3px;
    margin-right: 3px;
    border-bottom-color: #1560bf;
    border-bottom-style: solid;
    border-bottom-width: 0px;
    box-sizing: border-box;
    transition: all 0.1s linear;
}

.header-opaque #menu li {
    height: 65px !important;
    line-height: calc(65px - 22px - 22px);
    color: white !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    padding-top: 22px !important;
    padding-bottom: 22px !important;
}

#menu li:hover {
    border-bottom-width: 8px;
}

.header-opaque #menu li:hover {
    padding-bottom: 16px !important;
}

#menu a {
    text-decoration: none;
}

#bg-img-container {
    width: 100%;
    position: relative;
}

.bg-img {
    width: 100%;
    border-radius: 24px;
}

#bg-img-container::before {
    content: '';
    border-radius: 24px;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 30%);
}

#bg-img-container .overlay {
    position: absolute;
    top: 50%;
    transform: translate(0%, -50%);
    color: white;
    text-shadow: 0px 0px 10px black;
}

.card-row {
    display: flex;
    justify-content: space-between;
}

/* if only one card in the card-row, center it */
.card-row > :only-child {
    margin-left: auto;
    margin-right: auto;
}

.card {
    border-radius: 24px;
    background-color: #0f3d77;
    box-sizing: border-box;
    position: relative;
}

.padding {
    padding: 16px;
}

.vertical-card-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: white;
    display: block;
}

.person img {
    border-radius: 50%;
    width: 100%;
}

.person p {
    text-align: center;
    margin-top: 8px;
}

#content {
    width: 100%;
}

.text-section {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


#map-container {
    width: 100%;
    display: block;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    margin-bottom: 90px;
}

#map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5em;
    color: white;
    text-shadow: 0px 0px 2px black;
    transition: all 0.25s ease-out;
    text-align: center;
}

#map-container img {
    filter: brightness(50%);
    transition: all 0.25s ease-out;
}

#map-container:hover img {
    filter: brightness(60%);
}

#map-container:hover #map-overlay {
    font-size: 3em;
}

.button {
    position: absolute;
    z-index: 98;
    width: 30px;
    height: 30px;
    background-color: #155ab2;
    color: white;
    margin-left: 10px;
    margin-top: 10px;
    border-bottom-style: solid;
    border-bottom-width: 10px;
    border-bottom-color: #0f3d77;
    cursor: pointer;
    transition: all 0.1s linear;
    font-size: 20px;
    text-align: center;
    line-height: 30px;
}

.button:hover {
    border-bottom-width: 5px;
    margin-top: 15px;

}

#about-map {
    z-index: 99;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.58);
    right: 0;
}

#notice {
    color: white;
    background-color: rgb(200, 0, 0);
    font-size: 1.2em;
    padding: 8px;
    text-align: center;
}

#notice:hover {
    text-decoration: underline;
}

#menu-button {
    display: none;
}

#menu-button-custom {
    display: none;
}

.section-image {
    width: 50%;
    height: 100%;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
}

.section {
    width: 50%;
    height: 100%;
    float: right;
}

.left {
    float: left;
}

.right {
    float: right;
}

.bold-heading {
    font-weight: 800;
    font-size: 1.8em;
}

#contact-anfahrt-div {
    width: 100%;
    float: left;
    position: relative;
    color: white;
    background-color: #0F4283;
    padding: 80px 0 60px 0;
}

#contact-anfahrt-div h2 {
    margin-top: 0;
}

#anfahrt-div {
    width: 50%;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    right: 0;
    padding: 0px 60px 0px 60px;
    box-sizing: border-box;
}

#contact-div {
    width: 50%;
    float: left;
    padding: 0px 60px 0px 60px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-content: space-around;
    border-right-style: solid;
    border-right-width: 1px;
}

#contact-div div {
    margin-left: 40px;
    margin-right: 40px;
    text-align: center;
}

#contact-div img {
    border-radius: 145px;
    margin-bottom: 20px;
    box-shadow: 0px 0px 10px -1px black;
}

#opening-times-div {
    background-color: #0F4283;
    color: white;
    width: 100%;
    margin-top: 50px;
    text-align: center;
    padding-bottom: 60px;
    float: left;
    width: 100%;
    margin: 0;
}

.start-text {
    font-size: 1.2em;
    width: 90%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: 32px;
}

#footer-div {
    width: 80%;
    height: 150px;
    margin: 40px auto 0px auto;
    padding-left: 80px;
    padding-right: 80px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 64px;
    border-top-style: solid;
    border-top-width: 1px;
    border-top-color: black;
}

.footer-nav {
    flex-grow: 2;
    font-size: 1.2em;
}

.footer-nav a {
    margin-left: 16px;
    margin-right: 16px;
    text-decoration: none;
    color: #2e2d35;
}

.outline {
    outline-width: 1px;
    outline-offset: 0;
    outline-color: rgba(0, 130, 206, 0.75);
    outline-style: solid;
    animation: animateOutline 4s ease infinite;
}

@keyframes animateOutline {
    0% {
        outline-width: 1px;
        outline-offset: 0;
        outline-color: rgba(0, 130, 206, 0);
    }

    10% {
        outline-color: rgba(0, 130, 206, 0.75);
    }

    /* The animation finishes at 50% */
    50% {
        outline-width: 7px;
        outline-offset: 4px;
        outline-color: rgba(0, 130, 206, 0);
    }

    100% {
        outline-width: 7px;
        outline-offset: 4px;
        outline-color: rgba(102, 102, 102, 0);
    }
}

@media (max-width: 1199px) {
    #footer-div {
        padding-top: 32px;
        padding-bottom: 32px;
        flex-direction: column;
        height: auto;
        gap: 32px;
    }

    .footer-nav {
        font-size: 1em;
    }

    #header-logo {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    #header-logo-compact {
        left: 50%;
        transform: translateX(-50%);
    }

    #menu-button {
        display: block;
        position: absolute;
        right: 32px;
        top: 33px;
        width: 30px;
        height: 30px;
        opacity: 0;
    }

    .header-opaque #menu-button {
        top: 10px;
    }

    #menu-button:checked+#menu {
        margin-top: -110px;
    }

    #menu {
        margin-top: -1500px;
        padding-top: 120px;
        transition: all 0.3s ease-in-out;
        flex-direction: column;
        float: left;
        background-color: rgba(0, 0, 0, 0.85);
        width: 100%;
        height: 1000px;
    }

    #header:has(#menu-button:checked) {
        padding-left: 0;
        padding-right: 0;
    }

    #menu li {
        color: white;
        line-height: 2;
        height: auto;
    }

    #menu-button-custom {
        position: absolute;
        right: 32px;
        top: 33px;
        transition: all 0.3s linear;
        display: block;
    }

    .header-opaque #menu-button-custom {
        top: 10px;
    }

    #menu-button-custom div {
        width: 35px;
        height: 5px;
        background-color: black;
        margin: 6px 0;
    }

    #contact-div div {
        margin-top: 50px;
    }

    #contact-div h2 {
        margin-bottom: 0;
    }
}