#timetable {
    font-family: 'Arial', sans-serif;
    max-width: 600px;
    margin: 2rem auto;
}

.timetable .timetable-section {
    margin-bottom: 2rem;
}

.timetable .section-heading,
.next-event .section-heading,
.progress-container .section-heading {
    font-size: 1.2rem;
    font-weight: bold;
    color: #d33333;
    margin: 1.5rem 0 0.5rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;

    display: flex;
    justify-content: space-between;
    align-items: center;

}
.progress-container .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.progress-container .section-buttons,
.next-event .section-buttons {
    display: flex;
    gap: 10px;
}

.progress-container .btn,
.next-event .btn {
    padding: 4px 12px;
    background: #aaaaaa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size:10px;
    font-weight: bold;
}

.progress-container .btn:hover,
.next-event .btn:hover {
    background: #888888;
}


.timetable .event-place {
    color: #666;
    font-style: italic;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

.timetable .event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timetable .event-item {
    position: relative;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    background: #f5f5f5;
    border-left: 5px solid #ccc;
    transition: background 0.3s, border-color 0.3s;
}

.timetable .event-item.range {
    border-color: #888;
}

.timetable .event-item.spot {
    border-color: #aaa;
}

.timetable .event-item.upcoming {
    background: #fff6e5;
    border-color: #ff9800;
    background: white;
    border-color: greenyellow;
}

.timetable .event-time {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 14px;
}

.timetable .event-title {
    color: #111;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.timetable .event-info {
    color: #666;
    font-size: 12px;
    margin-bottom: 0.25rem;
}

.timetable .event-notice {
    color: #111;
    font-size: 12px;
    font-style: italic;
    margin-bottom: 0.25rem;
}

.timetable .timetable-empty {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 6px;
}

@media all and (max-width: 400px) {
    .timetable .event-title {
        font-size: 12px;
    }
    .timetable .event-notice {
        font-size: 10px;
    }
    .timetable .event-time {
        font-size: 12px;
    }
    .timetable .event-info {
        font-size: 10px;
    }
}





#next-event {
    transition: all 0.3s ease-in-out;
    min-width:120px;
}
#next-event .event-head {
    margin-top: 0px;
    margin-bottom: -4px;
    font-size: 11px;
    color: #444;
}
#next-event h3, #event-title {
    margin-top: 6px;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #444444;
}
#next-event ul {
    list-style-type: none;
    margin-left: -15px;
}
#next-event li {
    color: #444444;
    margin-left: -25px;
    font-size: 12px;
}
#next-event p {
    margin: 2px 0;
    font-size: 11px;
    color: #444;
}

#button-stream {
    border: none;
    padding: 4px 12px;
    font-size:14px;
    background:transparent;
    color:black;
    cursor: pointer;
    font-weight: bold;
}
#button-stream:hover {
    border:none;
    background:transparent;
    color: red;
}
#button-stream:active {
    border:none;
    background:transparent;
    color: #444444;
}
#button-stream .far {
    font-size:14px;
    padding-right:5px;
    color: red;

      border-radius: 50%;
      animation: pulse2 2.5s infinite ease-in-out;
}


@keyframes pulse2 {
    0% {
        transform: scale(1);
        color: darkred;
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        color:red;
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        color: darkred;
        opacity: 1;
    }
}

/* Countdown-Styling */
#event-countdown {
    font-weight: bold;
    font-size: 11px;
    color: #d32f2f; /* Rot als Signal */
    width:50px;
    text-align:left;
}

/* "Event läuft jetzt" Highlight */
 #next-event.running {
    background: #e8f5e9;
    border-left: 5px solid #43a047;
}









.progress-container h5 {
    font-size: 15px;
    font-weight: bold;
    color: #d33333;
}

.progress-container .event-progress-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.progress-container .event-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    background: #fff;
    height: 50px;
    transition all 1s ease;
}

.progress-container .event-progress:hover {
    background: #fafafa;
    transform: scale(1.01);

}

.progress-container .event-info {
    width: 100%;
}

.progress-container .event-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 14px;
    text-align:left;
}

@media all and (max-width:400px) {
    .progress-container .event-title {
        font-size: 12px;
    }
}

.progress-container .progress-label {
    float: right;
    font-size: 10px;
    margin-left: 10px;
    font-weight: 500;
}

.progress-container .progress-label-prev {
    float: left;
    font-size: 10px;
    margin-left: 0px;
    font-weight: 500;
}

.progress-container .progress-label-aft {
    float: left;
    font-size: 10px;
    margin-left: 0px;
    font-weight: 500;
}

.progress-container .progressbar {
    background: #eee;
    border-radius: 6px;
    height: 8px;
    margin-top: 0.3rem;
    overflow: hidden;
}

.progress-container .progressbar-fill {
    height: 100%;
    transition: width 0.5s ease;
}

/* Allgemeine Icon Styles - OHNE background-image */
.progress-container .event-icon {
    width: 40px;
    height: 40px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    display: block;
}

/*
.progress-container .event-icon.run-1 {
    background-image: url("https://einsteinmarathon.de/wp-content/uploads/2023/01/LO-SPK_UL_2021_vertikal_RGB.png") !important;
}

.progress-container .event-icon.run-2 {
    background-image: url("https://einsteinmarathon.de/wp-content/uploads/2014/04/zeiss_logo.png") !important;
}

.progress-container .event-icon.run-3 {
    background-image: url("https://einsteinmarathon.de/wp-content/uploads/2018/02/beurer_2018.png") !important;
}

.progress-container .event-icon.run-4 {
    background-image: url("https://einsteinmarathon.de/wp-content/uploads/2014/04/peri.png") !important;
}

.progress-container .event-icon.run-5 {
    background-image: url("https://einsteinmarathon.de/wp-content/uploads/2022/06/aok_gesundheitskasse_2022.png") !important;
}

.progress-container .event-icon.run-6 {
    background-image: url("https://einsteinmarathon.de/wp-content/uploads/2023/02/liquimoly-logo-right.png") !important;
}

.progress-container .event-icon.run-7 {
    background-image: url("https://einsteinmarathon.de/wp-content/uploads/2024/02/KGF_PistenBully-neu-768x193.png") !important;
}


.progress-container .event-icon.run-8 {
    background-image: url("https://einsteinmarathon.de/wp-content/uploads/2023/01/Einstein-Marathon-Logo-klein-1.svg") !important;
}

.progress-container .event-icon.run-9 {
    background-image: url("https://einsteinmarathon.de/wp-content/uploads/2025/03/haeussler__logo_2025_wp.png") !important;
}
*/
/* Progressbar Farben - !important behalten für Theme-Kompatibilität */
.progress-container .event-progress.run-1 .progressbar-fill {
    background: #ff3b3b !important;
}

.progress-container .event-progress.run-2 .progressbar-fill {
    background: #4400ff !important;
}

.progress-container .event-progress.run-3 .progressbar-fill {
    background: #d6336c !important;
}

.progress-container .event-progress.run-4 .progressbar-fill {
    background: #ffc107 !important;
}

.progress-container .event-progress.run-5 .progressbar-fill {
    background: #28a745 !important;
}

.progress-container .event-progress.run-6 .progressbar-fill {
    background: #4499ff !important;
}

.progress-container .event-progress.run-7 .progressbar-fill {
    background: #ff3b3b !important;
}

.progress-container .event-progress.run-8 .progressbar-fill {
    background: #4400ff !important;
}

.progress-container .event-progress.run-9 .progressbar-fill {
    background: #4400ff !important;
}