@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&family=DM+Serif+Display&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    padding-bottom: 90px;
    background-color: #fff7de;
    overflow-x: hidden;
}

/* gegen Lücken am Rand */

h2 {
    color: rgb(40, 40, 40);
    font-size: x-large;
    margin-left: 10%;
    font-family: "DM Serif Display", serif;
}

h1 {
    font-family: "DM Serif Display", serif;
    font-size: xx-large;
}

#button {
    display: block;
    margin: 20px auto;
    background-color: #c9c0a8;
    border-radius: 15px;
    border: none;
    width: 15%;
    height: 25px;
}

#button:hover {
    background-color: #938c7a;
}

#button a {
    color: #000000;
    text-decoration: none;
}


p {
    font-family: "DM Sans", sans-serif;
    font-size: large;
    margin-left: 10%;
    margin-right: 10%;
}

li {
    font-family: "DM Sans", sans-serif;
    font-size: large;
    margin-left: 10%;
}


/* Bild hinter Titel */

#title {
    background-image: url("background_title.jpg");
    font-size: 300%;
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 200px;
    padding: 40px;
    text-align: center;
    margin: 0;
}


.bild {
    display: flex;
    align-items: flex-start;
    margin-left: 7.5%;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

#bild {
    height: 200px;
    border-radius: 20px;
    margin-top: 1%;
}


.standort {
    display: flex;
    align-items: flex-start;
    margin-left: 7.5%;
}


.text {
    flex: 1;
    min-width: 20%;
    max-width: 300px;
}


.map {
    width: 700px;
    height: 400px;
    flex-shrink: 0;
    margin-top: 5%;
    border-radius: 20px;
}



/* Toggle unsichtbar */

#toggle {
    display: none;
}


/* Hamburger */

.menu-icon {
    position: fixed;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}


/* Sidebar */

.menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background-color: #c9c0a8;
    display: flex;
    flex-direction: column;
    padding-top: 60px;
    transition: 0.3s;
    z-index: 1000;
}


/* Links */

.menu a {
    color: rgb(36, 36, 36);
    text-decoration: none;
    padding: 15px;
    font-size: x-large;
    font-family: "DM Sans", sans-serif;
}


.uebersicht.active {
    color: white;
}

.uebersicht:hover {
    background-color: #685e41;
}


/* Menü öffnen */

#toggle:checked ~ .menu {
    right: 0;
}


/* ☰ zu ✖ */

.menu-icon::before {
    content: "☰";
}

#toggle:checked ~ .menu-icon::before {
    content: "✖";
}



/* Slider */

.slider {
    overflow: hidden;
    width: 100%;
}

.track {
    display: flex;
    width: max-content;
    animation: scroll 50s linear infinite;
}

.track img {
    height: 400px;
}


@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}



/* Kontakt */

#kontakt {
    position: fixed;
    background-color: #c9c0a8;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 5px;
}

#kontakt p {
    margin: 5px;
}



/* ==========================
   Responsive Design
========================== */


/* Tablet */

@media screen and (max-width: 1024px) {

    #title {
        font-size: 250%;
    }


    #button {
        width: 30%;
        height: 35px;
    }


    .bild {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-left: 5%;
        margin-right: 5%;
        gap: 20px;
    }

    .bild > div {
        width: 60%;
    }

    #bild {
        width: 40%;
        height: auto;
    }


    .standort {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
    }


    .text {
        max-width: 90%;
    }


    .map {
        width: 90%;
        height: 350px;
        margin-top: 20px;
    }


    .track img {
        height: 300px;
    }
}



/* Handy */

@media screen and (max-width: 768px) {

    .menu-icon {
        top: 20px;
        right: 20px;
    }


    h1 {
        font-size: 2rem;
    }


    h2 {
        margin-left: 5%;
        font-size: 1.5rem;
    }


    p,
    li {
        margin-left: 5%;
        margin-right: 5%;
        font-size: 1rem;
    }


    #button {
        width: 70%;
        height: 40px;
        line-height: 40px;
    }


    .bild {
        flex-direction: row;
        align-items: center;
        margin-left: 0;
        gap: 10px;
    }

    .bild > div {
        width: 55%;
    }

    #bild {
        width: 45%;
        height: auto;
    }

    .standort {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
    }


    .text {
        max-width: 95%;
    }


    .map {
        width: 95%;
        height: 250px;
    }


    .menu {
        width: 220px;
    }


    .menu a {
        font-size: 1.2rem;
    }


    .track img {
        height: 220px;
    }

}



/* Kleine Handys */

@media screen and (max-width: 480px) {

    #title {
        font-size: 140%;
    }


    h1 {
        font-size: 1.6rem;
    }


    h2 {
        font-size: 1.3rem;
    }


    p,
    li {
        font-size: 0.95rem;
    }


    #button {
        width: 90%;
    }


    .track img {
        height: 160px;
    }


    .menu {
        width: 200px;
    }

}