.songcontainer {
    max-width: 1100px;
    margin: 0 auto;
}

.songcontainer h2 {
    font-family: Playfair Display, Georgia, serif; 
    font-style: italic;
    text-align: center;
    /*font-size: 2.0rem;*/
    letter-spacing: 2px;
    font-weight: 300;
    margin-bottom: 40px;
}

.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.genre-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 6px solid var(--genre-color);
}

.genre-card h3 {
    /*font-family: 'Playfair Display', serif;*/
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--genre-color);
    margin: 0 0 5px 0;
    font-size: 1.8rem;
}

.one-liner {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #777;
    display: block;
    margin-bottom: 20px;
    min-height: 2.5em;
}

/* 2. LISTEN STYLING */
.songcontainer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.songcontainer li {
    padding: 8px 0;
    border-bottom: 1px solid #f9f9f9;
    font-size: 0.95rem;
}

.songcontainer li span {
    display: block;
    font-size: 0.8rem;
    color: #888;
}

/* 3. DIE STEUERUNG (CHECKBOX TRICK) */
.toggle-input {
    display: none;
}

/* Die Checkbox selbst ist unsichtbar */
.toggle-label {
    display: none;
}

/* Der Button ist am Desktop unsichtbar */

/* 4. DESKTOP LOGIK (Immer sichtbar) */
@media (min-width: 1051px) {
    .song-list {
        display: block !important;
    }
}

/* 5. MOBILE LOGIK (Auf- und Zuklappen) */
@media (max-width: 1050px) {
    .toggle-label {
        display: block;
        cursor: pointer;
        color: var(--genre-color);
        font-weight: 700;
        padding: 10px 0;
        border-top: 1px solid #eee;
    }

    .toggle-label::before {
        content: "+ Repertoire anzeigen";
    }

    .song-list {
        display: none;
        /* Grundzustand bleibt erst mal versteckt */
        opacity: 0;
        transform: translateY(-10px);
        /* Startet 10px weiter oben */
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Standardmäßig zu auf Handy */

    /* WENN Checkbox aktiviert, dann zeige Liste und ändere Text */
    .toggle-input:checked~.song-list {
        display: block;
        /* Erscheint im Dokumentfluss */
        opacity: 1;
        /* Wird sichtbar */
        transform: translateY(0);
        /* Gleitet an die richtige Position */
    }

    .toggle-input:checked~.toggle-label::before {
        content: "- Repertoire schließen";
    }

    /* Ein kleiner Trick: Da display:block Animationen oft "hart" umschaltet, 
       nutzen wir bei Bedarf zusätzlich eine Keyframe-Animation */
    .toggle-input:checked~.song-list {
        animation: fadeInSlide 0.4s ease forwards;
    }
}

/* Die Definition der Animation */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.songcontainer h1 {
    font-size: 2.2rem;
}