:root {
    --accent-color: #FBD9AD;
    --red-color: #FF4F4F;
    --graph-color: #6FC3C5;
    --text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    --background-opacity: 0.2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Josefin Slab', serif;
    font-weight: 700;
    background-color: #E5E5E5;
    min-height: 100vh;
}

.container {
    position: relative;
    width: 100%;
    max-width: 1728px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Location Selector Styles */
.location-selector {
    text-align: center;
    padding: 20px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 106px;
    height: 111px;
}

.velo-container {
    text-align: center;
    margin: 50px auto 30px auto;
    display: flex;
    justify-content: center;
}

.velo-container img {
    width: 400px;
    height: auto;
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease-in-out; /* Smooth Fade */
}

.location-dropdown {
    position: relative;
}

.location-dropdown-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 20px 200px;
    border-radius: 40px;
    font-family: 'Josefin Slab', serif;
}

.location-dropdown-button h1 {
    font-size: 72px;
    text-align: center;
    text-shadow: var(--text-shadow);
    line-height: 100px;
    margin: 0;
    font-family: 'Josefin Slab', serif;
    font-weight: 700;
}

.location-dropdown-button .dropdown-arrow {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.location-dropdown-button:focus {
    outline: none;
}

.location-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--accent-color);
    border-radius: 20px;
    margin-top: 10px;
    z-index: 1;
}

.location-dropdown-content.show {
    display: block;
}

.location-option {
    color: black;
    padding: 20px 75px;
    text-decoration: none;
    display: block;
    font-size: 40px;
    text-align: center;
    font-family: 'Josefin Slab', serif;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.location-option:hover {
    background-color: #6FC3C5;
}

.location-option.selected {
    color: var(--red-color);
}

.location-option:first-child {
    border-radius: 20px 20px 0 0;
}

.location-option:last-child {
    border-radius: 0 0 20px 20px;
}

/* Available Bikes Section */
.velos-available {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.velos-available h2 {
    font-size: 54px;
    text-shadow: var(--text-shadow);
}

.counter {
    background-color: var(--red-color);
    color: white;
    width: 76px;
    height: 104px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    text-shadow: 4px 5px 2px rgba(0, 0, 0, 0.42);
}

/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
    margin: 50px 0;
    cursor: pointer;
}

.arrow-down {
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Statistics Section */
.statistics {
    margin-top: 150px;
    text-align: center;
}

.statistics h2 {
    font-size: 42px;
    text-shadow: var(--text-shadow);
    margin-bottom: 50px;
    line-height: 1.2;
}

.days-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    width: 523px;
    margin-left: auto;
    margin-right: auto;
}

.dropdown-button {
    background-color: var(--accent-color);
    border: none;
    border-radius: 20px;
    padding: 20px 30px;
    font-family: 'Josefin Slab', serif;
    font-weight: 700;
    font-size: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    width: 100%;
    background-color: var(--accent-color);
    border-radius: 20px;
    margin-top: 10px;
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 20px 75px;
    text-decoration: none;
    display: block;
    font-size: 42px;
    text-align: center;
}

.dropdown-content a.selected {
    color: var(--red-color);
}

.dropdown-content a:hover {
    background-color: #6FC3C5;
}

.dropdown-content a:first-child {
    border-radius: 20px 20px 0 0;
}

.dropdown-content a:last-child {
    border-radius: 0 0 20px 20px;
}

.show {
    display: block;
}

.dropdown-arrow {
    font-size: 24px;
    transition: transform 0.3s ease;
}

/* Graph Container */
.statistics-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    gap: 30px;
    position: relative;
}

.graph-container {
    flex: 3;
    margin: 0;
    position: relative;
}

.graph {
    width: 100%;
    background-color: transparent;
    position: relative;
    padding: 20px;
    border-radius: 4px;
}

#velometerChart {
    width: 100% !important;
    height: 450px !important;
    background-color: #E5E5E5;
}

/* Best Time Section */
.best-time {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.best-time h2 {
    font-size: 42px;
    text-shadow: var(--text-shadow);
    line-height: 1.2;
    letter-spacing: -1.28px;
    text-align: left;
}

.statistics .time-box {
    background-color: var(--accent-color);
    border-radius: 30px;
    padding: 30px;
    font-size: 42px !important;
    text-align: center;
    text-shadow: var(--text-shadow);
    height: 188px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.best-time-container {
    flex: 0 0 400px;
}

.bg-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    min-width: 1728px;
    height: auto;
    opacity: 0.2;
    object-fit: cover;
    z-index: -1;
}

.bg-bottom {
    position: absolute;
    top: 1800px;
    left: -312px;
    width: 2296px;
    height: 500px;
    opacity: 0.2;
    object-fit: cover;
    z-index: -1;
}

/* Responsive nur für bg-top */
@media screen and (max-width: 1024px) {
    .bg-top {
        min-width: 1024px;
    }
}

@media screen and (max-width: 768px) {
    .bg-top {
        min-width: 768px;
    }
}

@media screen and (max-width: 480px) {
    .bg-top {
        min-width: 480px;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet und kleiner (iPad und kleiner) */
@media screen and (max-width: 1024px) {
    .statistics-container {
        flex-direction: column;
        gap: 40px;
        padding: 0 30px;
        align-items: center;
    }

    .velo-container img {
        width: 300px;
    }
    
    .graph-container {
        width: 100%;
        order: 1;
    }
    
    .best-time-container {
        width: 100%;
        order: 2;
    }
    
    .best-time {
        width: 100%;
        align-items: center;
    }
    
    .best-time h2 {
        text-align: center;
    }
    
    #velometerChart {
        height: 400px !important;
    }
    
    .location-dropdown-button {
        padding: 20px 100px;
        gap: 30px;
    }
    
    .location-dropdown-button h1 {
        font-size: 56px;
        line-height: 70px;
    }
    
    .velos-available {
        margin-top: 150px;
    }
    
    .velos-available h2 {
        font-size: 42px;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .statistics-container {
        padding: 0 20px;
        gap: 30px;
    }

    .statistics {
    margin-top: 50px;
}
    
    #velometerChart {
        height: 350px !important;
    }
    
    .graph {
        padding: 10px;
    }

    .velo-container img {
        width: 250px;
    }
    .location-dropdown-button {
        padding: 15px 50px;
        gap: 20px;
    }
    
    .location-dropdown-button h1 {
        font-size: 42px;
        line-height: 50px;
    }
    
    .location-option {
        font-size: 32px;
        padding: 15px 50px;
    }
    
    .velos-available {
        margin-top: 50px;
        gap: 20px;
    }
    
    .velos-available h2 {
        font-size: 32px;
    }
    
    .counter {
        width: 60px;
        height: 85px;
        font-size: 48px;
    }
    
    .statistics h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .days-dropdown {
        width: 90%;
        max-width: 350px;
        margin-bottom: 30px;
    }
    
    .dropdown-button {
        font-size: 28px; 
        padding: 12px 20px; 
    }
    
    .dropdown-content a {
        font-size: 28px;
        padding: 12px 40px; 
    }
    
    .best-time h2 {
        font-size: 28px;
    }
    
    .statistics .time-box {
        font-size: 26px !important; 
        padding: 20px;
        height: auto;
        min-height: 120px;
    }
    
    .graph-container {
        width: 100%;
        max-width: 100%;
    }
     .bg-bottom {
        width: 200vw;
        height: auto;
        left: 50%;
        transform: translateX(-50%);
        top: 1400px; /* Angepasst für Mobile */
    }
    
    .bg-top {
        min-width: 768px;
    }
}


/* Sehr kleine Handys */
@media screen and (max-width: 480px) {
    .statistics-container {
        padding:  15px;
    }
    
    #velometerChart {
        height: 280px !important;
    }

    .velo-container img {
        width: 200px; 
    }
    
    .velo-container {
        margin: 30px auto 20px auto;
    }
    
    .location-dropdown-button {
        padding: 10px 30px;
        gap: 15px;
    }
    
    .location-dropdown-button h1 {
        font-size: 32px;
        line-height: 40px;
    }
    
    .location-option {
        font-size: 24px;
        padding: 12px 30px;
    }
    
    .velos-available {
        margin-top: 50px;
        gap: 15px;
        flex-direction: column;
    }
    
    .velos-available h2 {
        font-size: 24px;
    }
    
    .counter {
        width: 50px;
        height: 70px;
        font-size: 40px;
    }
    
    .statistics h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    /* Dropdown noch kleiner */
    .days-dropdown {
        width: 95%;
        max-width: 280px;
        margin-bottom: 20px;
    }
    
    .dropdown-button {
        font-size: 22px; /* Statt 24px */
        padding: 10px 15px; /* Statt 12px 20px */
    }
    
    .dropdown-content a {
        font-size: 22px; /* Statt 24px */
        padding: 10px 25px; /* Statt 12px 30px */
    }
    
    /* Best Time noch kleiner */
    .best-time h2 {
        font-size: 22px; /* Statt 24px */
    }
    
    .statistics .time-box {
        font-size: 20px !important; /* Statt 24px */
        padding: 15px;
        min-height: 100px;
    }
    
    .logo {
        width: 80px;
        height: 84px;
    }
     .bg-bottom {
        width: 200vw;
        height: auto;
        left: 50%;
        transform: translateX(-50%);
        top: 1200px; 
    }
    
    .bg-top {
        min-width: 480px;
    }
}