body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
    font-size: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    margin-top: 0px !important;
}

ul {
    list-style-type: none;
    padding-inline-start: 5px;
}
p.liste {
    margin: 3px 0px 15px 0 !important;
    text-align: right;
}

.info-box {
    display: flex;
    align-items: flex-start;
    border: 1px solid #ccc;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    background-color: #f0f0f0; /* Standardfarbe, wird überschrieben inline */
}

.link-box {
    display: block; /* Wichtig! */
    text-decoration: none; /* Unterstrich entfernen */
    color: inherit; /* Textfarbe erben */
}

.thumbnail {
    max-width: 150px;
    margin-right: 20px;
}

.no-cover {
     width: 150px;
     height: 150px;
     background: rgba(255,255,255,0.3);
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 5px;
     margin-right: 20px;
}

.content {
    flex: 1;
}
.container {
    display: flex;
}
.cover {
    text-align: center;
}
.info {
    margin: 0 0 0 50px;
}

h3 {
    margin: -10px 0 0 30px;
}

.episodenbild {
    text-decoration: none;
}
#Bilder {
cursor: pointer; /* oder andere Cursor-Formen */
}

/* Transparentes Popup mit sichtbarem Hintergrund */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Transparenter Hintergrund */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup.active {
    display: flex;
}

/* Kompakter Content-Bereich */
.popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95); /* Leicht transparenter weißer Hintergrund */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Bild bleibt in Originalgröße */
.popup-img {
    max-width: 80vw;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

/* Schließen-Button */
.close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.closeAudioPopup {
    background: #ff4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.year-group > ul,
.month-group > ul {
    display: none;
}
.year-group.open > ul,
.month-group.open > ul {
    display: block !important;
}

.episode-list.open {
    display: block !important;
}
.year-toggle,
.month-toggle {
    cursor: pointer;
    font-weight: bold;
}
.month-toggle {
    font-weight: normal;
}
.month-group.open > ul.episode-list {
    display: block;
}

@media (max-width: 768px) {
    body {
        margin: 0;
        padding: 0;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }

    .cover {
        width: 80%;
        max-width: 300px; /* Begrenzung für Cover-Breite */
        margin-top: 20px;
        margin-bottom: 20px; /* Abstand zur info-Div */
    }

    /* Optional: Cover-Bild skalieren */
    .cover img {
        width: 100%;
        height: auto;
    }

    /* Info-Div unter der Cover-Div, falls nicht schon so */
    .info {
        width: 100%;
        max-width: 360px;
        text-align: center;
        margin: 0px;
    }

    /* Schriftgrößen anpassen für kleinere Bildschirme */
    .info h2 {
        font-size: 1.5em;
    }

    .info h3 {
        font-size: 1.2em;
        margin: -10px 0 0 0;
    }

    li {
        text-align: left;
    }
    .podcast-box {
        width: 100%;
        flex-direction: column; /* optional, für vertikale Anordnung */
    }
    /* Optional: auch die .thumbnail anpassen */
    .thumbnail {
        flex: 0 0 auto;
        width: 100%;
        margin: 0 0 10px 0;
    }
    .thumbnail img {
        max-width: 100%;
        height: auto;
    }
}
