header{
    height: 120px;
    background-color: rgb(4, 36, 46);
    display: flex;
    align-items: center;
}
body{
    background-color: rgb(2, 24, 33);
    color: white;
    margin: 0;
}
footer{
    height: 120px;
    background-color: rgb(4, 36, 46);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}
h1{
    text-align: center;
}
.logoheader{
    height: 40px;
    margin-left: 60px;
}
.mainsection{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: calc(100vh - 240px);
}
.imgSmalMain{
    object-fit: cover;
    height: 120px;
    width: 120px;
    border: 2px solid rgb(10, 50, 69);
    border-radius: 8px;   
    filter: brightness(60%);
}
.imgSmalMain:hover {
    cursor: pointer;
    filter: brightness(100%);
}
.maindiv{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.navigation{
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box; /* Verhindert, dass Padding die Breite sprengt */
}
.helperdiv{
    width: 85vw;
}
.navigation button{
    background-color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}
.navigation button:hover{
    background-color: #ddd;
}
.close-btn{
    width: 24px;
    text-align: center;
    background-color: #fff;
    border: none;
    margin: 8px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 16px;
}
.close-btn:hover{
    background-color: #ddd;
}
.overlay{
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.303);
    display: flex;
    justify-content: center;
    align-items: center;
}
.fotochart-overlay{
    background-color: lightgray;
    max-width: 400px;
    width: 100%;
    /* GEÄNDERT: Höhe vergrößert für den Button */
    max-height: 600px; 
    height: auto;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 10px;
}
.imgOverlayBig{
    object-fit: cover;
    width: 380px;
    height: 300px;
    margin: 10px;
}
.d_none{
    display: none;
}
.overlayHeader{
    display: flex;
    justify-content: end;
    width: 100%;
}

/* --- NEU: Styles für den Download Button --- */
.download-box {
    margin: 5px 0 10px 0;
    display: flex;
    justify-content: center;
}

.download-btn {
    text-decoration: none;
    background-color: rgb(4, 36, 46);
    color: white;
    padding: 10px 20px; /* Gleiche Größe wie Navigation-Buttons */
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.2s;
    font-family: sans-serif;
}

.download-btn:hover {
    background-color: rgb(10, 50, 69);
    cursor: pointer;
}
/* ------------------------------------------ */

@media (max-width: 1000px){
    h1{
        font-size: 20px;
    }
    .logoheader{
        height: 30px;
        margin-left: 50px;
    }
    .imgSmalMain{
        height: 100px;
        width: 100px;
    }    
}
@media (max-width: 800px){
    h1{
        font-size: 24px;
    }
    p{
        font-size: 16px;
    }
    .logoheader{
        height: 24px;
        margin-left: 40px;
    }
    .imgSmalMain{
        height: 90px;
        width: 90px;
    }    
}
@media (max-width: 600px){
    
    .logoheader{
        height: 24px;
        margin-left: 30px;
    }
    .imgSmalMain{
        height: 80px;
        width: 80px;
    }
    header{
        height: 80px;
    }    
    footer{
        height: 80px;
    }
    .mainsection{
        height: calc(100vh - 160px);
    }
    .fotochart-overlay{
        background-color: lightgray;
        max-width: 320px;
        width: 100%;
        /* GEÄNDERT: Mobile Höhe angepasst */
        max-height: 500px; 
        height: auto;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
    }
    .imgOverlayBig{
        width: 300px;
        height: 150px;
        margin: 10px;
    }
}