* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-main-background: #FFFFFF;
    --color-main-text: black;
    --color-main-accent: #266DAC;
}

body {
    color: var(--color-main-text);
    background-color: var(--color-main-background);
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    line-height: 1.4;
}

main {
    margin: 2% 20%;
}

h1 {
    font-size: 60pt;
    padding: 20pt 0pt;
    text-align: center;
    color: var(--color-main-accent);
}

h2 {
    font-size: 30pt;
    padding: 10pt 0pt;
    color: var(--color-main-accent);
}

h3 {
    font-size: 20pt;
}

p, li, a, th, td, button {
    font-size: 14pt;
}

p {
    padding-bottom: 5pt;
}

li {
    padding-bottom: 2pt;
}

ul {
    list-style-position: outside;
    padding: 5pt 0pt;
    padding-left: 1.2em;
}

a {
    color: var(--color-main-accent);
}

table {
    padding: 10pt 0pt;
}

th, td {
    padding-bottom: 5pt;
    padding-right: 20pt;
    vertical-align: top;
}

.front {
    display: grid;
    grid-template-columns: 2fr 1fr;
    justify-content: space-between;
    column-gap: 50px;
}

.front-text {
    font-size: 16pt;
}

.front-image {
    width: 100%;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover; /* Bilder werden zugeschnitten, behalten Proportionen */
    border-radius: 8px;
}

a img:hover {
    filter: opacity(0.5);
}

nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    width: 100%;
    margin: auto;
}

nav a {
    text-align: center;
    background-color: var(--color-main-accent);
    color: var(--color-main-background);
    overflow: hidden;
    text-decoration: none;
    margin: 0;
    padding: 20px 0px;
    opacity: 0.8;
}

nav a:hover {
    background-color: var(--color-main-accent);
    color: var(--color-main-background);
    opacity: 1;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--color-main-background);
}

nav ul li {
    float: left;
}

nav ul li a {
    display: block;
    color: var(--color-main-text);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

nav ul li a:hover {
    background-color: var(--color-main-accent);
    color: var(--color-main-background);
}

img {
    border-radius: 10px;
}

.flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
}

div {
    padding: 20px 0px;
}

footer {
    text-align: center;
    padding: 50px 0px;
    background-color: var(--color-main-accent);
    opacity: 0.8;
    color: var(--color-main-background);
}

footer a {
    color: var(--color-main-background);
}

/* don't touch! */
#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.day {
    border: 1px solid #ccc;
    min-height: 60px;
    text-align: right;
    padding: 4px;
    box-sizing: border-box;
}

.occupied {
    background-color: var(--color-main-accent);
    color: var(--color-main-background);
    opacity: 0.8;
}

.header {
    font-weight: bold;
    text-align: center;
    background: #eee;
}

.dropdown {
    display: none;
}

.to-top {
    display: none;
}

@media (max-width: 800px) {
    body {
        margin: 0;
    }

    main {
        margin: 2% 5%;;
    }

    header {
        margin: 2% 5%;
    }

    h1 {
        font-size: 30pt;
    }

    h2 {
        font-size: 22pt;
    }

    .front-text {
        font-size: 14pt;
    }

    .front {
        grid-template-columns: 1fr;
    }

    .text-item {
        grid-area: 2 / 1;
    }

    .img-item {
        grid-area: 1 / 1;
    }

    nav {
        display: none;
    }

    .flex-container {
        flex-direction: column;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .gallery img {
        width: 100%;
        height: 150px;
        object-fit: cover; /* Bilder werden zugeschnitten, behalten Proportionen */
        border-radius: 8px;
    }

    .dropbtn {
        background-color: var(--color-main-accent);
        color: var(--color-main-background);
        padding: 16px;
        font-size: 16px;
        border: none;
        cursor: pointer;
    }

    .dropdown {
        position: relative;
        display: none;
        padding: 0;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: var(--color-main-background);
        min-width: 200px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    }

    .dropdown-content a {
        color: var(--color-main-text);
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

    .dropdown-content a:hover {
        background-color: var(--color-main-background);
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown:hover .dropbtn {
        background-color: var(--color-main-accent);
    }

    .to-top {
        display: block;
        position: fixed;
        bottom: 10px;
        right: 10px;
        background-color: var(--color-main-accent);
        text-align: center;
    }

    .to-top-button {
        text-decoration: none;
        color: var(--color-main-background);
        padding: 0px 20px;
    }
}