* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "Karla";
    src: url("fonts/Karla-Regular.ttf");
    font-weight: 300 500;
}

@font-face {
    font-family: "Karla";
    src: url("fonts/Karla-Light.ttf");
    font-weight: 0 200;
}

@font-face {
    font-family: "Karla";
    src: url("fonts/Karla-Bold.ttf");
    font-weight: 600 800;
}

html {
    height: 100%;
    font-family: 'Karla', sans-serif;
}

body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    overflow: hidden;
}

h1 {
    font-size: calc(3vh + 1vw + 5px);
    margin-bottom: 4vh;
}

h2 {
    font-size: calc(2.5vh + 5px);
    margin-bottom: 2vh;
}

h3 {
    font-size: calc(2vh + 5px);
    margin-bottom: 1vh;
}

p,
li,
input {
    font-size: calc(1.3vh + 6px);
    line-height: 1.3;
}

li.admin {
    font-size: calc(1vh + 4px);
}

li.header-item.admin a {
    font-weight: 100;
    color: rgba(0, 0, 0, 0.5);
}

.scroll-container {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

.header {
    position: fixed;
    top: 0;
    height: 5vh;
    z-index: 1;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}

.header.expanded {
    height: 100vh;
}

nav {
    height: 100%;
}

.header-container {
    height: 100%;
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.header.expanded .header-container {
    flex-direction: column;
    gap: 2rem;
}

.header-item {
    margin: 0 1.5rem;
}

.header-item a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.hamburger {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    flex-direction: column;
    padding: 1vh 1rem;
    box-sizing: border-box;
    justify-content: center;
    gap: 0.5vh;
}

.hamburger div {
    border: 1px solid black;
    border-radius: 5px;
    width: 5vw;
    background-color: black;
}

.header-item.admin {
    position: absolute;
}

@media only screen and (max-width: 999px) {
    .header:not(.expanded) .header-item:not(.main) {
        display: none;
    }

    .admin {
        bottom: 10%;
    }

    .hamburger {
        display: flex;
    }

    form.contact-form {
        min-width: 80%;
    }

    .details-container {
        width: 100%;
        left: 0;
    }

    .about-container {
        flex-direction: column;
    }

    .details-container {
        position: absolute;
    }
}

@media only screen and (min-width: 1000px) {
    .header-item.main {
        position: absolute;
        left: 0;
    }

    .admin {
        right: 0;
    }

    .header-item a:hover {
        text-decoration: underline;
    }

    .hamburger {
        display: none;
    }

    .page {
        background-attachment: fixed;
    }

    .details-container {
        width: 80%;
        left: 10%;
    }

    .about-container {
        flex-direction: row;
    }

    .details-container {
        position: relative;
        left: 0;
    }
}

.page {
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    /* scroll-snap-align: center; */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgba(255, 255, 255, 0.5);
    background-blend-mode: color;
}

.footer {
    width: 100%;
    height: 5vh;
    box-sizing: border-box;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgba(255, 255, 255, 0.5);
    background-blend-mode: color;
}

.page#data {
    background-color: rgba(255, 255, 255, 0.8);
    overflow-y: scroll;
}

#data h3 {
    margin-top: 1vh;
}

.data-generated {
    margin-bottom: 1vh;
}

.page-container {
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    padding: 7vh 7vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* #home .page-container {
    padding: 10vh 20vw;
} */

.home-container {
    display: flex;
    height: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
}

.home-container>* {
    margin-bottom: 3vh;
}

.main-heading {
    text-align: center;
    font-weight: normal;
}

.text-link {
    text-decoration: underline;
    color: black;
}

ul {
    list-style: square;
}

.news-container {
    display: flex;
    justify-content: flex-start;
    margin-top: 2vh;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-container {
    position: relative;
    display: flex;
    height: inherit;
    align-items: center;
    justify-content: center;
    gap: 5vw;
}

.categories-container {
    height: 100%;
    display: flex;
}

.categories-container ul {
    height: 100%;
    display: flex;
    flex-direction: column;
    list-style: none;
    align-items: center;
    padding: 1rem 0;
    box-sizing: border-box;
    gap: 1vh;
    width: fit-content;
    justify-content: center;
}

.categories-container li {
    border: 1px solid black;
    cursor: pointer;
    width: 100%;
    padding: 1vh;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.6);
    text-align: center;
    backdrop-filter: blur(3px);
}

.categories-container li:hover {
    text-decoration: underline;
}

.details-container {
    top: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transition: all 0.1s ease;
}

.details-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.details-card-container {
    position: relative;
    width: 100%;
    max-height: 96%;
    top: 2%;
    height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateZ(0);
}

.details-card {
    position: relative;
    width: max-content;
    width: 100%;
    max-height: 100%;
    background: rgb(255 255 255 / 70%);
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: auto;
    border: 1px solid black;
    backdrop-filter: blur(4px);
}

.details-title {
    margin-bottom: 1rem;
}

.icon-close {
    position: absolute;
    right: 1%;
    user-select: none;
    z-index: 1;
}

.icon-close:hover {
    text-decoration: underline;
}

.portrait {
    width: calc(20vw + 5rem);
    object-fit: cover;
}

.contact-form-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    min-width: 50%;
    max-width: 100%;
}

.contact-form input,
.contact-form textarea {
    margin-top: 0.5vh;
    margin-bottom: 1vh;
    box-sizing: border-box;
    background: rgb(255 255 255 / 60%);
    border: 1px solid black;
    padding: 5px;
    width: 100%;
    backdrop-filter: blur(3px);
}

.contact-input {
    min-height: 20vh;
    max-height: 40vh;
    resize: vertical;
}

.custom-button {
    width: fit-content;
    margin: 1rem auto;
    padding: 0.5rem;
    background: rgb(255 255 255 / 60%);
    cursor: pointer;
    border: 2px solid black;
}

.custom-button:hover {
    background-color: rgb(255 255 255 / 90%);
}

.address-container {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    margin-bottom: 2rem;
    align-items: center;
}

.address-container a {
    color: black;
    text-decoration: none;
}

.eu-pic {
    width: calc(10vw + 10rem);
    margin-top: 2vh;
}

.shameless-plug {
    margin-top: 10vh;
}

.address-container .shameless-plug * {
    font-size: calc(1vh + 3px);
    color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.links-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

.links-container a {
    text-decoration: none;
    color: black;
}

.links-container a:hover {
    text-decoration: underline;
}

#home {
    background-image: url("img/Bimeshof174.JPG");
}

#news {
    background-image: url("img/Bimeshof173.JPG");
}

#details {
    background-image: url("img/pumpkim.jpg");
}

#contact {
    background-image: url("img/Bimeshof124.JPG");
}

#impressum,
#data {
    background-image: url("img/Bimeshof045.JPG");
}

#footer {
    background-color: rgba(255, 255, 255, 0.6);
}

#thank-you {
    background-image: url("img/Bimeshof045.JPG")
}