/* Timeline / Slider Styles - Umgestellt auf BEM-Namensschema */

.timeline-view {
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    /* Compute flexible width: viewport width minus 20px margin */
    width: calc(100vw - 20px);
    max-width: 550px; /* Prevents excessive width on desktop monitors */

    height: 44px; /* Reduziert von 54px für ein deutlich kompakteres Design */
    padding: 0 8px; /* Abstand rechts zum Button auf 8px verringert (vorher 12px) */
    box-sizing: border-box;
    /* Pushes the control up to make room for copyrights below */
    margin-bottom: 25px !important;
}

/* Time display on the left (zweizeilig, flexibel und zentriert) */
.timeline-view__time-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
    text-align: center;
    /* Auf 0 gesetzt, damit der Abstand links rein durch das Container-Padding (8px) bestimmt wird, exakt wie rechts */
    padding-left: 0; 
    /* Abstand zwischen Uhrzeit und Slider auf 10px verkürzt */
    padding-right: 10px; 
}

/* Große Uhrzeit oben */
.timeline-view__time-main {
    font-size: 15px; /* Minimal verkleinert von 16px, um vertikalen Platz zu sparen */
    font-weight: bold;
    color: #333333;
    line-height: 1.2; /* Abstand zur Uhrzeit bleibt wie ursprünglich gewünscht */
}

/* Kleiner Subtext unten (Today, Tomorrow, Datum) */
.timeline-view__time-subtext {
    font-size: 9.5px; 
    font-weight: 500;
    color: #757575;
    line-height: 1.1; /* Abstand zur Uhrzeit bleibt wie ursprünglich gewünscht */
    text-transform: lowercase; 
}

/* Slider area in the center grows dynamically */
.timeline-view__slider-wrapper {
    flex: 1;
    /* Spiegelt die linke Seite: 0px links (da die Uhrzeit 10px rechts schiebt) und exakt 10px rechts zum ersten Knopf */
    padding: 0 10px 0 0; 
    display: flex;
    align-items: center;
}

.timeline-view__slider {
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    height: 5px; /* Leicht dünnerer Slider (5px statt 6px) wirkt eleganter im flachen Container */
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
    margin: 0;
}

    /* Slider thumb styling (Webkit) */
    .timeline-view__slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px; /* Thumb von 18px auf 16px verkleinert, damit er nicht oben/unten aneckt */
        height: 16px;
        border-radius: 50%;
        background: #0077a4;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }

    /* Slider thumb styling (Firefox) */
    .timeline-view__slider::-moz-range-thumb {
        width: 16px; /* Thumb von 18px auf 16px verkleinert */
        height: 16px;
        border-radius: 50%;
        background: #0077a4;
        cursor: pointer;
        border: none;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }

/* Navigation buttons on the right */
.timeline-view__navigation {
    display: flex;
    gap: 4px; /* Abstand zwischen den beiden Buttons leicht verringert */
}

.timeline-view__nav-btn {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 28px; /* Von 30px auf 28px verkleinert, passt perfekt zur 44px Container-Höhe */
    height: 28px;
    font-size: 12px;
    font-weight: 900;
    color: #333333;
    -webkit-text-stroke: 0.5px #333333; 

    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    padding: 0;
}

    /* Original Leaflet hover behavior */
    .timeline-view__nav-btn:hover {
        background-color: #f4f4f4;
        color: #000000;
        border-color: #bbb;
    }

    /* Original Leaflet active/click behavior (on press) */
    .timeline-view__nav-btn:active {
        background-color: #eeeeee;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    }
