/* --------------------------------------------------
   Zeitstrahl
   -------------------------------------------------- */

#timeline-section {
    width: 100%;
    min-width: 0;
    margin-top: 0;
    overflow: hidden;
}

#timeline-section h3 {
    margin-bottom: 10px;
}

.timeline-field {
    width: 100%;
    min-width: 0;
    margin: 8px 0;
}

.timeline-field-label {
    display: block;
    margin-bottom: 4px;
    color: #bbb;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.timeline-date-time {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.timeline-date-time input,
.timeline-speed select {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.timeline-date-time input[type="date"],
.timeline-date-time input[type="time"] {
    min-width: 0;
    max-width: 100%;
}

.timeline-date-time input:focus,
.timeline-speed select:focus,
.timeline-slider:focus,
.timeline-controls button:focus,
.timeline-live-button:focus {
    outline: 2px solid #888;
    outline-offset: 1px;
}

.timeline-current-time {
    margin-top: 8px;
    text-align: center;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.timeline-slider {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 7px 0 2px;
    accent-color: #fff;
    cursor: pointer;
}

.timeline-scale {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    color: #888;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------
   Steuerung
   -------------------------------------------------- */

.timeline-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    min-width: 0;
    margin-top: 10px;
}

.timeline-controls button,
.timeline-live-button {
    min-width: 0;
    height: 40px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: #333;
    color: white;
    font-size: 17px;
    cursor: pointer;
}

.timeline-controls button:hover,
.timeline-live-button:hover {
    background: #444;
}

.timeline-speed-row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    width: 100%;
    min-width: 0;
    align-items: end;
}

.timeline-speed {
    min-width: 0;
    margin-top: 2px;
}

.timeline-speed select {
    text-align: center;
    padding-left: 6px;
    padding-right: 6px;
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
    cursor: pointer;
}

.timeline-live-button {
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid transparent;
}

.timeline-live-button.active {
    border-color: #d22;
    background: #241010;
    color: #f44;
}

.timeline-live-button.active:hover {
    background: #351010;
    color: #f55;
}

/* --------------------------------------------------
   Status
   -------------------------------------------------- */

.timeline-status {
    min-height: 16px;
    margin-top: 8px;
    color: #888;
    font-size: 11px;
    text-align: center;
    overflow-wrap: anywhere;
}

.timeline-help {
    margin-top: 5px;
    color: #666;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
}

#timeline-section input:disabled,
#timeline-section button:disabled,
#timeline-section select:disabled {
    opacity: 0.45;
    cursor: default;
}

/* --------------------------------------------------
   Kleine Displays
   -------------------------------------------------- */

@media (max-width: 560px) {

    .timeline-date-time {
        grid-template-columns:
            minmax(0, 1.25fr)
            minmax(0, 1fr);
    }

    .timeline-date-time input {
        font-size: 13px;
        padding-left: 6px;
        padding-right: 6px;
    }
}
