*{
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Einstiegstext, Titel */
body > div:first-child {
    text-align: center;
    padding: 50px 20px;
}

body > div:first-child h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: lighter;
    color: #000000;
    margin-bottom: 30px;
    line-height: 1.2;
}

body > div:first-child h2 {
    font-size: clamp(1rem, 3vw, 2rem);
    color: #000000;
    font-weight: lighter;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Navigation, Tages- und Wochenansicht */
.view-navigation {
    text-align: center;
    padding: 30px 20px;
    border-top: #000000 0.5px solid;
    margin: 0px 20px;
}

.nav-link {
    margin: 10px 5px;
}

.view-navigation .nav-link {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    background-color: #f8f9fa;
    color: #333;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.view-navigation .nav-link:hover {
    background-color: #ccdff7;
}

.view-navigation .nav-link.active {
    background-color: #2990ff;
    color: white;
}

/* Datumsauswahl */
#datePickerContainer {
    margin-bottom: 5rem;
    text-align: center;
    padding: 0 20px;
}

#datePickerContainer p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 10px;
}

#datePickerContainer input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin: 0 auto;
    display: inline-block;
    max-width: 200px;
    width: 100%;
}

/* Info-Text Charts */
.info-text-left,
.info-text-right,
.info-text-middle {
    margin: 0px 20px;
    padding: 0 10px;
}

.info-text-left h2,
.info-text-right h2,
.info-text-middle h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #000000;
    font-weight: lighter;
    line-height: 1.3;
}

.info-text-left {
    text-align: left;
}

.info-text-right {
    text-align: right;
}

.info-text-middle {
    text-align: center;
    margin-bottom: 5rem;
} 

/* Charts Tagesansicht */
.chartContainer {
    display: flex;
    align-items: center;
    margin: 20px 20px 80px 20px;
    transition: opacity 0.3s ease;
    flex-wrap: wrap;
    gap: 20px;
}

#chartLeft {
    justify-content: flex-start;
}

#chartRight {
    justify-content: flex-end;
}

#chartMiddle {
    justify-content: center;
}

canvas {
    max-width: 300px;
    max-height: 300px;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: filter 0.3s ease;
}

.big-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    flex-shrink: 0;
    padding: 10px;
    transition: opacity 0.3s ease;
}

.number-value {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    color: #333;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.number-label {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #666;
    text-align: center;
    margin-top: 5px;
}

/* Text Charts Wochenansicht */
.date-range {
    text-align: center;
    padding: 0 20px;
    margin-bottom: 20px;
}

.date-range h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
}

/* Charts Wochenansicht */
.combinedChartContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 20px 80px 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.combinedChartContainer canvas {
    max-width: 400px;
    max-height: 400px;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

/* RESPONSIVE DESIGN */

/* Tablet styles - only affects screens smaller than laptops */
@media (max-width: 768px) {
    body > div:first-child {
        padding: 30px 15px;
    }
    
    .view-navigation {
        padding: 20px 15px;
        margin: 0px 15px;
    }
    
    .nav-link {
        margin: 8px 3px;
        padding: 10px 20px;
    }
    
    .info-text-left,
    .info-text-right,
    .info-text-middle {
        text-align: center;
    }
    
    .chartContainer {
        flex-direction: column;
        justify-content: center !important;
        align-items: center;
        text-align: center;
    }
    
    canvas {
        max-width: 250px;
        max-height: 250px;
        margin-bottom: 10px;
    }
    
    .big-number {
        min-width: 100px;
    }
    
    .combinedChartContainer {
        flex-direction: column;
    }
    
    .combinedChartContainer canvas {
        max-width: 300px;
        max-height: 300px;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    body > div:first-child {
        padding: 20px 10px;
    }
    
    body > div:first-child h1 {
        margin-bottom: 20px;
    }
    
    body > div:first-child h2 {
        margin-bottom: 15px;
    }
    
    .view-navigation {
        padding: 15px 10px;
        margin: 0px 10px;
    }
    
    .view-navigation .nav-link {
        display: block;
        margin: 8px auto;
        max-width: 200px;
        width: 100%;
    }
    
    .info-text-left,
    .info-text-right,
    .info-text-middle {
        margin: 0px 10px;
        padding: 0 5px;
    }
    
    .chartContainer {
        margin: 15px 10px 40px 10px;
    }
    
    canvas {
        max-width: 200px;
        max-height: 200px;
    }
    
    .big-number {
        min-width: 80px;
        padding: 5px;
    }
    
    .combinedChartContainer {
        margin: 15px 10px 40px 10px;
    }
    
    .combinedChartContainer canvas {
        max-width: 250px;
        max-height: 250px;
    }
    
    #datePickerContainer {
        margin-bottom: 2rem;
        padding: 0 10px;
    }
    
    .info-text-middle {
        margin-bottom: 3rem;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    canvas {
        max-width: 180px;
        max-height: 180px;
    }
    
    .combinedChartContainer canvas {
        max-width: 200px;
        max-height: 200px;
    }
    
    .big-number {
        min-width: 70px;
    }
}