/* Allgemeine Stile */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
}

.container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1 {
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}

/* Fortschrittsbalken */
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #007BFF;
    width: 0;
    transition: width 0.3s ease;
}

/* Wochennavigation */
.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

.week-navigation button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1;
}

.week-navigation button:hover {
    background-color: #0056b3;
}

.week-navigation #week-title {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    margin: 0 10px;
}

.week-navigation #week-title:hover {
    text-decoration: underline;
}

/* Trainingstage */
.training-day {
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border: 2px solid #007BFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
}

.training-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.training-day h3 {
    margin: 0 0 10px;
    color: #555;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.training-day p {
    margin: 0;
    color: #333;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Farben für Intensitäten */
.training-day.langsam {
    background-color: #E8F5E9;
    border-color: #4CAF50;
}

.training-day.locker {
    background-color: #E3F2FD;
    border-color: #2196F3;
}

.training-day.moderat {
    background-color: #FFF3E0;
    border-color: #FF9800;
}

.training-day.schnell {
    background-color: #FFEBEE;
    border-color: #F44336;
}

/* Divider zwischen Trainings-Karten und Legende */
.divider {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin: 20px 0;
}

/* Legende */
.legend-box {
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 5px;
    border-left: 5px solid #81c784;
    text-align: left;
}

.legend-box h2 {
    margin: 0 0 10px;
}

.legend-box ul {
    padding-left: 20px;
    list-style-type: none;
}

.legend-box li {
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.legend-box .legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    min-width: 12px;  /* Verhindert, dass die Breite schrumpft */
    min-height: 12px; /* Verhindert, dass die Höhe schrumpft */
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;  /* Verhindert Verzerrungen */
}

.legend-box .langsam .legend-dot {
    background-color: #4CAF50;
}

.legend-box .locker .legend-dot {
    background-color: #2196F3;
}

.legend-box .moderat .legend-dot {
    background-color: #FF9800;
}

.legend-box .schnell .legend-dot {
    background-color: #F44336;
}

/* Ziel-Pace Box */
.ziel-pace-box {
    background-color: #E3F2FD;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #2196F3;
    margin: 20px 0;
    text-align: center;
}

.ziel-pace-box h2 {
    margin: 0 0 10px;
    color: #333;
}

.ziel-pace-box p {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

/* Hinweise */
.info-box {
    margin-top: 20px;
    padding: 15px;
    background: #fff8e1;
    border-radius: 5px;
    border-left: 5px solid #ffcc80;
    text-align: left;
}

.info-box h2 {
    margin: 0 0 10px;
}

.info-box ul {
    padding-left: 20px;
}

.completed {
    background-color: #e0f7fa; /* Hellblauer Hintergrund */
    border-left: 5px solid #00bcd4; /* Blaue linke Border */
    opacity: 0.8; /* Leichte Transparenz */
}

/* Responsive Design */
@media (max-width: 600px) {
    .week-navigation {
        flex-direction: row;
        justify-content: space-between;
        gap: 5px;
    }

    .week-navigation button {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .week-navigation #prev-week,
    .week-navigation #next-week {
        width: 40px;
        padding: 8px;
    }

    .week-navigation #prev-week::before {
        content: "←";
    }

    .week-navigation #next-week::before {
        content: "→";
    }

    .week-navigation #prev-week span,
    .week-navigation #next-week span {
        display: none;
    }

    .week-navigation #week-title {
        margin-left: 0;
    }
}