/*

* {
    border: 1px solid lightgrey; 
}

*/

:root {
    --boxBGColor: #b5ad7ebd;
}

body {
    height: 100%;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background-color: hsla(51, 14%, 29%, 0.741);
    /*
    background-image: url('img/background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
*/
}

button {
    background: #fce5cd;
    background: linear-gradient(#fce5cd, #ff9900);
    border: 1px solid #556699;
    border-radius: 11px;
    box-shadow: 6px 6px #b45f06;
    padding: 20px 45px;
    color: #ffffff;
    display: flex;
    align-items: center;
    font: normal bold 26px/1 "Open Sans", sans-serif;
    text-align: center;
    text-shadow: 1px 1px #b45f06;
}

.icon {
    width: 1.5em;
    height: 1.5em;
}

svg path {
    fill: white;
}

h2 {
    width: 100%;
    text-align: center;
}

nav {
    display: flex;
    justify-content: space-around;
    font-size: large;
}

.coverbild {
    width: 190px;
    height: 250px;
    padding: 5px;
}

#hefte {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hefte Grid
.hefte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
    */

#suche {
    justify-items: center;
    align-content: start;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.hefte-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.heft-item {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.heft-item a {
    border: none;
    cursor: pointer;
}

.heft-titel {
    margin-top: 8px;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
}

.heft-komponist {
    margin-top: 4px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Einzelheft Styling */
#einzelheft {
    justify-content: center;
    flex-direction: column;
}

.einzelheft-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
}

.noten-liste {
    flex: 1;
    border-left: 1px solid #ccc;
    padding-left: 20px;
    max-height: 600px;
    overflow-y: auto;
    background-color: var(--boxBGColor);
    font-size: 2em;
}


/* Listet die Einträge eines Heftes auf*/
.noten-eintrag {
    padding: 2px;
    margin: 5px 0;
}

/* Mehrfachtitel Styling */
#mehrfachtitel {
    flex-direction: column;
}

.mehrfachtitel-container {
    justify-content: center;
    padding: 20px;
}

#mehrfachtitel-hefte {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: var(--boxBGColor);
    padding: 10px;
    border-radius: 10px;

}

#info,
#home {
    margin-top: 20px;
    display: grid;
    place-items: center;
}

#info div,
#statistik   {
    width: 75vw;
    font-size: large;
    background-color: var(--boxBGColor);
    padding: 10px;
    border-radius: 10px;
}

.play-btn {
    background: #4CAF50;
    background: linear-gradient(#4CAF50, #45a049);
    border: 1px solid #2e7d32;
    border-radius: 4px;
    box-shadow: none;
    padding: 2px 6px;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    height: 1.2em;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.play-btn:hover {
    background: linear-gradient(#45a049, #3d8b40);
    transform: scale(1.1);
}

.play-btn-active {
    background: #ff6b6b;
    background: linear-gradient(#ff6b6b, #ee5a52);
    border: 1px solid #c92a2a;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.6);
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
    }

    button {
        font-size: 18px;
        padding: 15px 30px;
    }

    .coverbild {
        width: 120px;
        height: 160px;
    }

    .hefte-grid {
        gap: 10px;
    }

    .heft-titel {
        font-size: 14px;
    }

    .heft-komponist {
        font-size: 12px;
    }

    .einzelheft-container {
        flex-direction: column;
        gap: 20px;
    }

    .noten-liste {
        font-size: 1.5em;
        max-height: 400px;
    }

    #statistik {
        font-size: 1em;
    }

    .search-container {
        flex-direction: column;
        gap: 15px;
    }

    #suchfeld {
        width: 250px;
    }
}

@media (max-width: 480px) {
    button {
        font-size: 16px;
        padding: 12px 25px;
    }

    .coverbild {
        width: 100px;
        height: 130px;
    }

    .heft-titel {
        font-size: 12px;
    }

    .heft-komponist {
        font-size: 10px;
    }

    .noten-liste {
        font-size: 1.2em;
        padding-left: 10px;
    }

    #statistik {
        font-size: 0.9em;
    }

    #suchfeld {
        width: 200px;
    }
}