#sendeplan-widget {
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    --bg-card: #2a2e32;
    --text: #eee;
    --text-muted: #aaa;
    --accent: #bb4422;
    font-family: Arial, sans-serif;
    color: var(--text);
    padding: 10px;
}

#sendeplan-widget h2 {
    text-align: center;
    color: white;
}

/* Buttons */
#sendeplan-widget .buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 0;
}

#sendeplan-widget .buttons button {
    background: var(--bg-card);
    border: 1px solid #333;
    color: var(--text);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.2s;
}

#sendeplan-widget .buttons button.active {
    background: var(--accent);
    color: #fff;
}

#sendeplan-widget .buttons button:hover {
    background: #aa3311;
    color: #fff;
}

/* Container */
#sendeplan-widget .sendeplan-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    text-align: center;
    align-content: center;
}

@media (max-width: 480px) {
    #sendeplan-widget .sendeplan-container {
        padding: 5px;
    }
}

/* Tag */
#sendeplan-widget .tag {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    #sendeplan-widget .tag {
        padding: 12px;
        gap: 15px;
    }

    #sendeplan-widget .tag > * {
        margin-bottom: 10px;
    }
}

#sendeplan-widget .tag h2 {
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

/* Sendung */
#sendeplan-widget .sendung {
    display: flex;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #333;
    align-items: stretch;
    position: relative;
    flex-wrap: wrap;
}

#sendeplan-widget .sendung:last-child {
    border-bottom: none;
}

#sendeplan-widget .event-sendung {
    background-color: #3a4a3a;
}

/* Profilbild */
#sendeplan-widget .profil-bild {
    width: 100px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Container fÃ¼r Zeit, Profilbild und DJ-Name */
#sendeplan-widget .profil-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 5px;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    border-right: 1px solid #333;
    padding-right: 15px;
    margin-right: 5px;
    align-self: stretch;
    min-height: 100%;
}

#sendeplan-widget .profil-container .zeit {
    font-weight: bold;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9em;
    flex-wrap: wrap;
    width: 100%;
    text-align: center;
}

#sendeplan-widget .profil-container .moderator {
    font-size: 0.85em;
    color: var(--text-muted);
    text-decoration: none;
    text-align: center;
    max-width: 120px;
    word-wrap: break-word;
}

/* Info */
#sendeplan-widget .sendung-info {
    flex: 1;
    color:white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

#sendeplan-widget .sendung-info p {
    color: white;
}

/* Zeit + Showname in einer Zeile */
#sendeplan-widget .zeit-showname {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    width: 100%;
}

#sendeplan-widget .showname-inline {
    font-weight: bold;
    color: var(--text);
    font-size: 1em;
    text-align: center;
    display: block;
    width: 100%;
}

/* ON AIR Badge */
#sendeplan-widget .onair-badge {
    background: #e30000;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    animation: pulse-onair 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulse-onair {
    0%, 100% {
        background: #e30000;
        transform: scale(1);
    }
    50% {
        background: #ff4444;
        transform: scale(1.1);
    }
}

/* Twitch Badge */
#sendeplan-widget .twitch-badge {
    background: #9146ff;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 5px;
    text-decoration: none;
    display: block;
    width: 100px;
    text-align: center;
    transition: background 0.2s;
    box-sizing: border-box;
}

#sendeplan-widget .twitch-badge:hover {
    background: #772ce8;
    color: white;
    text-decoration: none;
}

/* Moderator in Info-Box (falls noch verwendet) */
#sendeplan-widget .sendung-info .moderator {
    font-size: 0.85em;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 4px;
}

#sendeplan-widget .sendung-info .moderator:hover {
    text-decoration: underline;
    color: var(--text);
}

/* Beschreibung */
#sendeplan-widget .beschreibung {
    text-align: center;
    align-content: center;
    width: 100%;
    box-sizing: border-box;
}

#sendeplan-widget .beschreibung img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 5px;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    box-sizing: border-box;
    align-content: center;
}

/* Showpicture-Bild für mobile Ansicht (standardmäßig versteckt) */
#sendeplan-widget .showpicture-mobile {
    display: none;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px auto;
    object-fit: contain;
    box-sizing: border-box;
}

/* Keine Sendungen */
#sendeplan-widget .no-sendungen {
    font-style: italic;
    color: var(--text-muted);
}

/* Responsive Design für mobile Geräte */
@media (max-width: 480px) {
    #sendeplan-widget .sendung {
        flex-direction: column;
        align-items: center;
        padding: 12px 10px;
        margin-bottom: 20px;
        border: 2px solid #555;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    #sendeplan-widget .sendung:last-child {
        border: 2px solid #555;
        margin-bottom: 0;
    }

    #sendeplan-widget .profil-container {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 2px solid #666;
        padding-right: 5px;
        padding-bottom: 8px;
        margin-right: 0;
        margin-bottom: 3px;
        align-self: auto;
        min-height: auto;
    }

    #sendeplan-widget .profil-container .zeit {
        flex-direction: column;
        gap: 5px;
        font-size: 1.1em;
    }

    #sendeplan-widget .profil-container .moderator {
        max-width: 100%;
    }

    #sendeplan-widget .sendung-info {
        width: 100%;
        padding: 0;
    }

    #sendeplan-widget .zeit-showname {
        margin-bottom: 0;
        padding-bottom: 0;
        gap: 0;
        border-bottom: 1px solid #555;
    }

    #sendeplan-widget .showname-inline {
        font-size: 1.3em !important;
        margin-bottom: 0;
        padding-bottom: 3px;
    }

    #sendeplan-widget .beschreibung {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        margin-top: 6px;
    }

    /* Auf mobilen Geräten: große Bilder in der Beschreibung verstecken */
    #sendeplan-widget .beschreibung img {
        display: none;
    }

    /* Auf mobilen Geräten: showpicture-Bild anzeigen */
    #sendeplan-widget .showpicture-mobile {
        display: block;
        max-width: 100%;
        width: 100%;
        height: auto;
        margin-top: 3px;
        margin-bottom: 0;
    }
}