
* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-margin-top: 3vh;
}

body {
    font-family: Arial, sans-serif;
    background-color: honeydew;
    font-size: 20px;
    padding-bottom: 100lvh;
}

h2 {
    padding-left: 10%;
    width: 90%;
    padding: 4px;
    background-color: #fff8;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 0 30px 30px 0;
}
h3 {
    font-size: 1.6rem;
}

a {
    font-size: 1.1rem;
    text-decoration: none;
} 

a:hover {
    text-decoration: underline;
}

p {
    font-size: 1.1rem;
    line-height: 1.4;
}


header {
    height: 100svh;
    background-size: cover;
    background-position: center;
}

nav {
    position: fixed;
    bottom: 0;
    z-index: 1000;

    width: 100%;
    height: 20vh;
    background-color: rgba(0, 0, 0, 0.7);

    border-top: 3px solid white;

    display: flex;
    justify-content: center;
    align-items: center;
}


nav ul {
    position: absolute;
    height: 100%;
    width: 95%;
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 0.5vw; /* Kleiner Abstand, falls nötig */
    margin: 0;
    padding: 0;
}

nav ul li {
    flex: 0 1 auto; /* Verhindert ungleichmäßiges Wachstum */
    height: min(17svh, 17vw); /* Maximale Größe */
    max-height: 17svh;
    aspect-ratio: 1/1 !important;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    background-color: #46d8;
    border: 3px solid white;
}

nav ul li a {
    color: inherit;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#nav1 {
    color: lightblue;
    border-color: lightblue;
}
#nav2 {
    color: lightgreen;
    border-color: lightgreen;
}
#nav3 {
    color: lightyellow;
    border-color: lightyellow;
}
#nav4 {
    color: lightpink;
    border-color: lightpink;
}
#nav5 {
    color: lightcyan;
    border-color: lightcyan;
}

#logo {
    position: fixed;
    bottom: 20vh;
    left: 0;
    z-index: 1000;
    width: 25vh;
    height: 10vh;
    border-radius: 0 30% 0 0;
    overflow: hidden;
    background-image: url('IMG/logo.jpg');
    background-size: 100% auto;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

#eventDiv {
    position: absolute;
    top: 20vh;
    left: 0;
    z-index: 1000;
    width: 25vh;
    height: 25vh;
    overflow: visible;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    cursor: pointer;
}

#eventText {
    width: 25vh;
    height: 25vh;
    text-align: center;

}

#eventImg {
    width: 25vh;
    height: 25vh;
    background-size: 100% auto;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}


#impressum {
    position: fixed;    
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    border: 1px solid white;
    border-radius: 5px;
    z-index: 0;
}

#datenschutz {
    position: fixed;    
    top: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    border: 1px solid white;
    border-radius: 5px;
    z-index: 0;
}

#impressumTextBox, #datenschutzTextBox {
    width: 90%;
    height: 70%;
    padding: 5px;
    margin: 0;
    background-color: #fff;
    color: #000;
    font-size: 1.1rem;
    border: 2px solid #000;
    border-radius: 10px;
    resize: none;
    overflow-y: scroll;
}

#closeImpressum, #closeDatenschutz {
    font-size: 1.1rem;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
}



#welcomeText {
    background-color: lightcyan;
}


#oeffnungszeiten {
    background-color: lightgreen;
}


#neuigkeiten {
    background-color: lightyellow;
}


#cafe {
    background-color: lightpink;
}


#impressumKontakt {
    background-color: lightblue;
}

#impressumContainer, #datenschutzContainer {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    position: fixed;
    top: 10%;
    bottom: 10%;
    left: 5%;
    right: 5%;

    gap: 10px;
    padding: 5px;
    margin: 0;
    background-color: #666D;
    color: #fff;

    border: 3px solid white;
    border-radius: 15px;
    z-index: 1000;
}



.container {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 30px;
    padding: 20px;
    margin-bottom: 20svh;
}

.container div {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 80%;
    padding: 20px;
    gap: 20px;

    border: 2px solid #ccc;
    border-radius: 15px;
}



#newsContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 5px;
    margin: 0;
    background-color: inherit;
    border: none;
    
}

.newsItem {
    background-color: #fff;
}

.newsItem p {
    width: 90%;
    padding: 5px;
}

.newsImage {
    width: 90%;
    max-height: 40svh;
    object-fit: scale-down;
    border-radius: 5px;
    border: 10px solid #bbb;
    background-color: #888;
}

#loadMoreNews {
    background-color: #fff;
    color: #000;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #000;
    cursor: pointer;
    font-size: 1.1rem;
}

#loadMoreNews:hover {
    background-color: #ccc;
}

#fotoContainer {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 5px;
    margin: 0;
    background-color: inherit;
    border: none;
}

.hidden {
    display: none;
}

table {
    width: 90%;
    border: none;
    text-align: center;
    border-collapse: collapse;
}

table tbody tr td {
    padding: 8px;
    font-size: 1.1rem;
    background-color: #fff4;
    border: none;
}

@media (max-aspect-ratio: 1/1) {
    body {
        font-family: Arial, sans-serif;
        background-color: honeydew;
        font-size: 14px;
    }

    table tbody tr td {
        padding: 7px;
        font-size: 0.8rem;
        background-color: #fff4;
        border: none;
    }

    nav ul li a {
        color: inherit;
        text-decoration: none;
        font-size: 0.7rem;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }
        
    #logo {
        position: fixed;
        bottom: 20vh;
        left: 0;
        z-index: 1000;
        width: 15vh;
        height: 6vh;
        border-radius: 0 30% 0 0;
        overflow: hidden;
        background-image: url('IMG/logo.jpg');
        background-size: 100% auto;
        background-position: 50% 50%;
        background-repeat: no-repeat;
    }

    #eventDiv {
        position: absolute;
        top: 20vh;
        left: 0;
        z-index: 1000;
        width: 20vh;
        height: 20vh;
        overflow: visible;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        cursor: pointer;
    }

    #eventText {
        width: 20vh;
        height: 20vh;
        text-align: center;
    }

    #eventImg {
        width: 20vh;
        height: 20vh;
        background-size: 100% auto;
        background-position: 50% 50%;
        background-repeat: no-repeat;
    }

}