body {
    font-size: 1rem;
    font-family: 'Asap', Arial, Helvetica, sans-serif;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

*,
*::before,
*::after {
    padding: 0;
    margin: 0;
}

p {
    font-size: 1.2rem;
    font-weight: 400;
    padding-bottom: 1rem;
    line-height: 1.6em;
}

a {
    color: #000;
    text-decoration: underline;
    word-wrap: break-word;
}

a:hover {
    color: #17a1b6;
    font-weight: 400;
    text-decoration: underline;
}

h1 {
    font-family: 'Asap Condensed', Arial, Helvetica, sans-serif;
    margin-top: 75px;
    margin-bottom: 25px;
    font-size: 2.4rem;
    font-weight: 200;

}

.h1-startseite {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1rem;
    text-align: center;
}

.subtitle-h1-startseite {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.7rem;
}

.h1-startseite-main {
    font-size: 2.6rem;
    line-height: 3rem;
}

ul {
    padding-left: 40px;
    margin-bottom: 20px;
}

.text-buehne {
    background-color: rgba(255, 255, 255, 0.65);
    padding: 1.5rem;

}

h2 {
    font-family: 'Asap Condensed', Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 200;
    margin-bottom: 25px;
    margin-top: 40px;
}

h3 {
    font-family: 'Asap Condensed', Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 22px;
    margin-top: 30px;
}

h4 {
    font-family: 'Asap Condensed', Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 15px;
    margin-top: 20px;
}

h5 {
    font-family: 'Asap Condensed', Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 15px;
    margin-top: 20px;
}

.content {
    margin-left: auto;
    margin-right: auto;
    max-width: 960px;
}

#datenschutz p#quelle {
    font-size: 0.8rem;
    margin-top: 50px;
}

#datenschutz p {
    font-size: 1.1rem;
}

/* Bildergalerie */

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    list-style: none;

}

.img-full-width {
    height: 450px;
    flex: 1 1 auto;
}

.img-small {
    flex: 1 1 50%;
}

.image-gallery>li {
    position: relative;
    cursor: pointer;
}

.image-gallery li img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    border-radius: 5px;
}

.div-h3-images {
    position: absolute;
    margin-top: 10px;
    height: auto;
    padding: 7px 10px;
    background-color: rgba(237, 237, 237, 0.75);
}

.h3-images {
    color: rgb(51, 51, 51);
    font-weight: 400;
    text-align: left;
    margin-bottom: auto;
    margin-top: auto;
    font-size: 1.25rem;
    line-height: 21px;
}

.h3-images-sub {
    font-size: 0.9rem;
}

/*Overlay*/

.overlay {
    display: none;
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 999;
    padding: 40px;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 48rem) {
    .overlay {
        width: 100%;
        padding: 30px;
        align-items: flex-start;
    }
}

@media (max-width:96.875rem) {
    .overlay {
        height: auto;
    }
}

.overlay-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    margin: 0 20px 0 20px;


}

@media (max-width: 48rem) {
    .overlay-content {
        flex-direction: column;
    }
}

.overlay-image {
    max-height: 100%;
    max-width: 50%;
    /* Begrenze die Breite auf 50% */
    margin: 0 auto;
    /* Zentriere das Bild horizontal */

    /* Added for responsive scaling */
}


@media (max-width: 48rem) {
    .overlay-image {
        margin: 0 auto 20px auto;
        max-width: 60%;
    }

}

@media (max-width: 42rem) {
    .overlay-image {
        margin: 0 auto 20px auto;
        max-width: 80%;
    }

}

.overlay-text {
    text-align: center;
    font-size: 1rem;
    padding-left: 0;
}

.overlay-text p {
    font-size: 1.0rem;
    line-height: 1.3rem;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 24px;
}

.overlay-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 80%;
    cursor: pointer;
    padding: 0 20px;
    /* Füge Padding hinzu, um den Abstand anzupassen */
}

.overlay-nav-left {
    left: 0;
    font-size: 4rem;
    font-weight: 100;
    text-align: center;
}

.overlay-nav-right {
    right: 0;
    font-size: 4rem;
    font-weight: 100;
    text-align: center;
}


.close-button {
    position: absolute;
    top: 5px;
    right: 20px;
    font-size: 40px;
    cursor: pointer;
}

.imgdescription {
    display: none;
}


/* Navigation */

header {
    background-color: rgb(255, 255, 255);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e4e4e4;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

#nav-bar {
    margin-left: auto;
    margin-right: auto;
    height: 35px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    max-width: 960px;
    padding-bottom: 20px;
}

.img-logo img {
    max-height: 25px;
    width: 125px;
}

.img-logo {
    max-height: 25px;
}

nav ul {
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0;
}

nav li {
    margin-right: 1rem;
    margin-left: 1rem;
}

nav a {
    border-bottom: #333;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    color: #333;
    text-decoration: none;
}

nav a:hover {
    color: #024852;
    border-bottom: #024852;
    border-bottom-style: solid;
    font-weight: 700;
    text-decoration: none;
}

/* sections */

#projects {
    background-color: #f2f2f2;
}

section {
    padding-top: 80px;
    padding-bottom: 80px;
    padding-left: 10px;
    padding-right: 10px;
}

#section-buehne {
    margin-top: 65px;
    background-image: url(images/buehne-m.png);
    background-image: url(images/buehne-m.webp);
}


/* footer */

footer div {
    margin-left: auto;
    margin-right: auto;
    max-width: 960px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
    padding-bottom: 30px;
}

footer {
    box-shadow: 0px 4px 4px 4px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e4e4e4;
    background-color: #f2f2f2;
    margin-top: auto;
}

footer a {
    border-bottom: #333;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    color: #333;
    text-decoration: none;
}

footer a:hover {
    color: #024852;
    border-bottom: #024852;
    border-bottom-style: solid;
    font-weight: 700;
    text-decoration: none;
}

footer ul {
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

footer li {
    margin-right: 1rem;
    margin-left: 1rem;
}


/* Anpassungen größere Auflösungen */

/* min. 1200px */

@media (min-width: 75rem) {
    .img-small {
        flex: 1 1 20%;
    }

    .img-full-width {
        height: auto;
        flex: 1 1 auto;
    }

    #buehne {
        background-size: 100%;
        background-repeat: no-repeat;
    }

    .subtitle-h1-startseite {
        font-size: 2rem;
        line-height: 3.5rem;
    }

    .h1-startseite-main {
        font-size: 3.5rem;
        line-height: 5rem;
    }

    h1 {
        margin-top: 140px;
        font-size: 3.5rem;
    }

    nav ul {
        font-size: 1.25rem;
    }

    .img-logo img {
        max-height: 50px;
    }

    .img-logo {
        max-height: 50px;
    }

    #nav-bar {
        height: 70px;
    }

    #buehne {
        margin-top: 80px;
    }

    .overlay-text {
        padding-left: 35px;
        text-align: left;
    }

    .overlay-text p {
        line-height: 1.7rem;
        font-size: 1.1rem;
    }

    .img-logo img {
        width: 250px;
    }

}


/* ab min. 768px bis max. 1199px  */

@media (min-width: 48rem) and (max-width:74.938rem) {
    .img-small {
        flex: 1 1 40%;
    }

    .img-full-width {
        height: auto;
        flex: 1 1 auto;
    }

    .subtitle-h1-startseite {
        font-size: 2rem;
        line-height: 3.5rem;
    }

    .h1-startseite-main {
        font-size: 3.5rem;
        line-height: 5rem;
    }

    h1 {
        margin-top: 140px;
        font-size: 3.5rem;
    }


    nav ul {
        font-size: 1.25rem;
    }

    .img-logo img {
        max-height: 50px;
    }

    .img-logo img {
        width: 250px;
    }

    .img-logo {
        max-height: 50px;
    }

    #nav-bar {
        height: 70px;
    }

    #buehne {
        margin-top: 80px;
    }

    .overlay-text {
        padding-left: 35px;
        text-align: left;
    }

    .overlay-text p {
        font-size: 1.1rem;
    }

}


/* ab min. 1025px */

@media (min-width: 64.063rem) {

    #section-buehne {
        margin-top: 100px;
        padding-top: 100px;
        padding-bottom: 100px;
        background-image: url(images/buehne.png);
        background-image: url(images/buehne.webp);
    }

}

/* ab min. 768px bis max. 1024px  */
@media (min-width: 48rem) and (max-width:64rem) {

    #section-buehne {
        margin-top: 100px;
        background-image: url(images/buehne-t.png);
        background-image: url(images/buehne-t.webp);
    }

}

/* ab min. 481px bis max. 767px  */
@media (min-width: 30.063rem) and (max-width:47.938rem) {

    #section-buehne {
        background-image: url(images/buehne-p.png);
        background-image: url(images/buehne-p.webp);
    }

}